diff options
author | alzobnin <alzobnin@yandex-team.com> | 2022-12-15 18:44:25 +0300 |
---|---|---|
committer | alzobnin <alzobnin@yandex-team.com> | 2022-12-15 18:44:25 +0300 |
commit | 6b780718b1af069992f4f7311c1cb753c8a68d05 (patch) | |
tree | b6904be74d2722cf575508e05be1bb81184785e3 /library/cpp/codecs/greedy_dict/gd_builder.h | |
parent | feb341993178f4dc73afc5930dcb1442ec306bfd (diff) | |
download | ydb-6b780718b1af069992f4f7311c1cb753c8a68d05.tar.gz |
Restrict max length of learned prefixes and fix solar codec
Diffstat (limited to 'library/cpp/codecs/greedy_dict/gd_builder.h')
-rw-r--r-- | library/cpp/codecs/greedy_dict/gd_builder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/codecs/greedy_dict/gd_builder.h b/library/cpp/codecs/greedy_dict/gd_builder.h index b8e9a5e37b..8b20007425 100644 --- a/library/cpp/codecs/greedy_dict/gd_builder.h +++ b/library/cpp/codecs/greedy_dict/gd_builder.h @@ -69,11 +69,11 @@ namespace NGreedyDict { return std::move(Current); } - ui32 /*iters*/ Build(ui32 maxentries, ui32 maxiters = 16, ui32 mindiff = 10); + ui32 /*iters*/ Build(ui32 maxentries, ui32 maxiters = 16, ui32 maxlen = -1, ui32 mindiff = 10); public: void RebuildCounts(ui32 maxcand, bool final); - ui32 /*diff size*/ BuildNextGeneration(ui32 maxent); + ui32 /*diff size*/ BuildNextGeneration(ui32 maxent, ui32 maxlen); static bool IsCompound(ui64 ent) { return ent & 0xFFFFFFFF00000000ULL; |