Skip to content

Commit

Permalink
fixed bug with depth calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
Gillgamesh committed Nov 7, 2024
1 parent f9e45b8 commit 4cf4b20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/bucket_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class BucketBuffer {
// std::array<BufferEntry, BUFFER_CAPACITY> thread_local_otherbuffer {};

public:
BucketBuffer(): _capacity(5000) {
BucketBuffer(): _capacity(20) {
entries = std::vector<BufferEntry>();
entries.reserve(_capacity);
}
Expand Down
2 changes: 1 addition & 1 deletion src/sketch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void Sketch::update(const vec_t update_idx) {

// calculate all depths:
Bucket_Boruvka::get_all_index_depths(
update_idx, depth_buffer, get_seed(), num_columns, bkt_per_col + 1
update_idx, depth_buffer, get_seed(), num_columns, 32
);
// Update depth 0 bucket
Bucket_Boruvka::update(get_deterministic_bucket(), update_idx, checksum);
Expand Down

0 comments on commit 4cf4b20

Please sign in to comment.