Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4dfcceb

Browse files
committedJan 28, 2021
Catch up with ribbon7+ribbon8
1 parent 3b47af1 commit 4dfcceb

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed
 

‎src/ribbon/ribbon_impl.h

+10-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <cmath>
99

1010
#include "fastrange.h"
11-
#include "lang.h" // for FALLTHROUGH_INTENDED
1211
#include "port.h" // for PREFETCH
1312
#include "ribbon_alg.h"
1413

@@ -23,6 +22,8 @@ namespace ribbon {
2322
// and core design details.
2423
//
2524
// TODO: more details on trade-offs and practical issues.
25+
//
26+
// APIs for configuring Ribbon are in ribbon_config.h
2627

2728
// Ribbon implementations in this file take these parameters, which must be
2829
// provided in a class/struct type with members expressed in this concept:
@@ -49,18 +50,22 @@ namespace ribbon {
4950
// // construction.
5051
// static constexpr bool kIsFilter;
5152
//
52-
// // When true, enables a special "homogeneous" filter implementation which
53+
// // When true, enables a special "homogeneous" filter implementation that
5354
// // is slightly faster to construct, and never fails to construct though
5455
// // FP rate can quickly explode in cases where corresponding
5556
// // non-homogeneous filter would fail (or nearly fail?) to construct.
56-
// // Thus, we recommend ConstructionFailureChance smaller than desired FP
57-
// // rate.
57+
// // For smaller filters, you can configure with ConstructionFailureChance
58+
// // smaller than desired FP rate to largely counteract this effect.
59+
// // TODO: configuring Homogeneous Ribbon for arbitrarily large filters
60+
// // based on data from OptimizeHomogAtScale
5861
// static constexpr bool kHomogeneous;
5962
//
6063
// // When true, adds a tiny bit more hashing logic on queries and
6164
// // construction to improve utilization at the beginning and end of
6265
// // the structure. Recommended when CoeffRow is only 64 bits (or
63-
// // less), so typical num_starts < 10k.
66+
// // less), so typical num_starts < 10k. Although this is compatible
67+
// // with kHomogeneous, the competing space vs. time priorities might
68+
// // not be useful.
6469
// static constexpr bool kUseSmash;
6570
//
6671
// // When true, allows number of "starts" to be zero, for best support

0 commit comments

Comments
 (0)
Please sign in to comment.