pub const DEFAULT_MAX_TOTAL_CHAPTER_TITLE_BYTES: usize = _; // 1_048_576usizeExpand description
Default ceiling on the bytes every chapter title in one file may hold together — 1 MiB.
Why this number. A chapter title is a line of prose: tens of
bytes, a few hundred at the outside. 1 MiB is 256 bytes for each of
DEFAULT_MAX_CHAPTERS chapters, so every real table passes with
room to spare.
Why an aggregate rather than a per-title cap. A per-title cap already exists one layer down: the metadata reader refuses any single dictionary value past 64 KiB rather than truncating it. On its own that leaves the table’s total at the count times that cap — 256 MiB at the two defaults. This seat is what turns those two finite numbers into a small one.