Write XML, hashes and clipboard text straight from the model
The writer emits to a Sink instead of building an XmlNode tree: TEXT prints as tinyxml2's XMLPrinter would, HASH folds the same elements into the FNV hash, and TREE still builds nodes (for the FrameRestore backup). Unknown children are interleaved at their read positions as elements stream out; numbers skip escaping. Corpus (1,251 files, Release): save 0.73 s -> 0.50 s, extended save 0.12 s -> 0.06 s, hash 0.13 s -> 0.05 s. Saves, hashes and clipboard text are byte-identical to before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
210232eb83
commit
640bf0abeb
1 file changed
+564
-377
+564
-377
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user