Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
meiravgri committed Jan 10, 2023
1 parent b0294d5 commit 85988b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/VecSim/algorithms/hnsw/hnsw_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ size_t EstimateInitialSize(const HNSWParams *params) {
est += sizeof(size_t) * params->initialCapacity + sizeof(size_t); // element level
est += sizeof(size_t) * params->initialCapacity +
sizeof(size_t); // Labels lookup hash table buckets.
est += sizeof(vecsim_stl::one_byte_mutex) * params->initialCapacity + sizeof(size_t); // lock per vector
est += sizeof(vecsim_stl::one_byte_mutex) * params->initialCapacity +
sizeof(size_t); // lock per vector
}

// Explicit allocation calls - always allocate a header.
Expand Down

0 comments on commit 85988b8

Please sign in to comment.