Repository navigation
Less allocation, less copying: optimizing the JSON tree parser #1306
guillermomolina
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The complete-document JSON parser has been reworked to reduce intermediate allocations and repeated work, entirely within the Protos standard library.
Less work between input and the final tree
The public API remains unchanged. Exact numeric representation, Unicode handling, ordered object members, duplicate-key rejection, and dynamic constructor selection retain their existing contracts. Reentrant parsing is covered explicitly by the expanded conformance suite.
Validation
All 1,256 focused test executions passed across JSON, JWT, logging and TOML, followed by the integrated local validation. All 20 jobs in the exhaustive pull-request CI also passed.
The implementation is merged into
main. No production Java changes were needed. The reduced intermediate work is established by the implementation; controlled throughput measurements remain pending.Implementation and review · Project website · GitHub repository
All reactions