Repository navigation
perf(rust): JSON.parse reads a string without escapes in place - #93
Merged
Merged
Conversation
hearnadam
force-pushed
the
perf/stack-10-json-parse
branch
from
November 26, 2026 17:20
afbd12a to
7062364
Compare
kommander
force-pushed
the
perf/stack-10-json-parse
branch
7 times, most recently
from
November 26, 2026 22:57
257aa2e to
67abda9
Compare
The parser made a String for every key and string value. One with no escape is a slice of the input: a key is interned from it, a short value goes in the buffer short strings share.
kommander
force-pushed
the
perf/stack-10-json-parse
branch
from
November 26, 2026 22:58
67abda9 to
bad934c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The parser made a String for every key and string value. One with no escape is
a slice of the input: a key is interned from it, a short value goes in the
buffer short strings share.
Part 10 of 11 in a stack; based on
perf/stack-09-substring. Each part was built, linted and tested on its own (cargo test --release --workspace, the same underPSYCHOSCRIPT_GC_STRESS=1, and the conformance cases underPSYCHOSCRIPT_ROUNDTRIP=1). Numbers are instructions retired, fromrust/bench/examples/corpusandmem_probe(part 1).