2 * Copyright (c) Meta Platforms, Inc. and affiliates.
5 * This source code is licensed under both the BSD-style license (found in the
6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 * in the COPYING file in the root directory of this source tree).
8 * You may select, at your option, one of the above-listed licenses.
12 # error LEVEL(x) must be defined
15 # error FAST_LEVEL(x) must be defined
18 # error ROW_LEVEL(x, y) must be defined
22 * The levels are chosen to trigger every strategy in every source size,
23 * as well as some fast levels and the default level.
24 * If you change the compression levels, you should probably update these.
37 /* ROW_LEVEL triggers the row hash (force enabled and disabled) with different
38 * dictionary strategies, and 16/32/64 row entries based on the level/searchLog.
39 * 1 == enabled, 2 == disabled.
42 ROW_LEVEL(5, 2) /* 16-entry rows */
46 ROW_LEVEL(7, 2) /* 16-entry rows */
52 ROW_LEVEL(11, 2) /* 32-entry rows */
54 ROW_LEVEL(12, 2) /* 64-entry rows */