Files
cadcraft/crates
ffishman 1a322faa0b fix(dwg): scan the bridge header in one pass; leave out proxies of a binary DXF
header_value kept an offset for every line up to the first ENDSEC: an input
without one cost about 24 bytes per line (0.8 GB for 32 MiB of short lines,
some 25 GB at the 1 GiB input limit). It now reads (group code, value) pairs in
one pass and stops at 0/ENDSEC, so memory no longer grows with the input
(36 MB for the same 32 MiB, the input itself).

dxf_class_names doesn't read a binary DXF's CLASSES, so its proxies kept their
DXF numbers, which name other classes in the DWG. CADCraft's own bridge is always
ASCII; for a binary DXF given to the conversion functions, the proxies are now
left out, as a pre-2013 DWG leaves them, instead of naming the wrong classes.

Both reported by CodeRabbit on #2471.
2026-10-30 09:08:20 -03:00
..