Skip to content

Commit

Permalink
Disable single pass
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskipf committed May 24, 2021
1 parent 9a4ef24 commit 6c1156d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions competitors/ts.h
Expand Up @@ -19,7 +19,8 @@ class TS : public Competitor {
max = data.back().key;
}
ts::Builder<KeyType> tsb(min, max, config_.spline_max_error,
config_.num_bins, config_.tree_max_error);
config_.num_bins, config_.tree_max_error,
/*single_pass=*/false, /*use_cache=*/false);
for (const auto& key_and_value : data) tsb.AddKey(key_and_value.key);
ts_ = tsb.Finalize();
});
Expand Down Expand Up @@ -54,8 +55,7 @@ class TS : public Competitor {
size_t tree_max_error;
};

bool
SetParameters(const std::string& dataset) {
bool SetParameters(const std::string& dataset) {
assert(size_scale >= 1 && size_scale <= 10);
std::vector<TSConfig> configs;

Expand Down

0 comments on commit 6c1156d

Please sign in to comment.