mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-18 16:14:57 +00:00
* xlsx/csv: cap secondary reader allocations (#2159) - XML: at most 1M children per element, 16,384 per worksheet row (TooLarge). - Workbook-wide cap of 16M cell elements. - Array-formula ranges indexed by row (budgeted), not scanned per cell. - <cols> writes share a 4M budget. - At most 4096 sheets; duplicate names deduplicated with a HashSet. - Pivot: field lists capped, repeated fields used once, labels borrowed. - CSV: fields past MAX_COLS dropped while reading the record. - At most 4M shared strings. - Relationships looked up by id through a HashMap. * xlsx: close the remaining secondary-reader cap gaps (#2159) - CSV: characters of a field past column 16,384 are not stored; quotes, delimiters and line ends in it are still followed. - Pivot: a field list cut at MAX_FIELDS is reported with a warning. - Sheet names: the prefix shortens once the (n) suffix passes (999), so deduplicated names stay within 31 characters. - Rows dropped for a bad row number still charge their <c> elements against MAX_CELLS. - Test Ctx helper gains the fields upstream added. * #2159: describe MAX_CELLS as the reader's own cap calc::eval::MAX_CELLS has the same value but limits one array result, not a workbook. * #2159: warn on capped pivot cache fields, dedupe pivot names through sets A cache cut at 16,384 fields is now reported, as the table field lists are. Axis filters and calculated fields are deduplicated through a set of lower-cased names instead of a scan per field, which was quadratic in the 16,384 fields allowed; the first of names equal but for case still wins.