Commit 2c3634c
Make numeric segmenter chunk size and head graph configurable (#603)
Summary:
Make the numeric segmenter accept local params for the chunk byte size
and head graph, replacing the previously hardcoded values.
- Chunk size: read via ZL_Segmenter_getLocalIntParam() using
ZL_SEGM_NUMERIC_CHUNK_BYTE_SIZE_MAX_PID. Falls back to 16MB default
if not provided.
- Head graph: read via ZL_Segmenter_getCustomGraphs(). Falls back to
ZL_GRAPH_NUMERIC_COMPRESS if no custom graph is provided.
Both changes are backward-compatible — existing callers that don't
provide these params get identical behavior to before.
Differential Revision: D997299171 parent 0f1fa3b commit 2c3634c
2 files changed
Lines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
21 | 30 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
25 | 35 | | |
26 | 36 | | |
27 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
0 commit comments