Skip to content

json: Double perf, Thirdle memory use - #941

Merged
Leonard Hecker (lhecker) merged 2 commits into
mainfrom
dev/lhecker/json-perf
Aug 26, 2026
Merged

json: Double perf, Thirdle memory use#941
Leonard Hecker (lhecker) merged 2 commits into
mainfrom
dev/lhecker/json-perf

Conversation

@lhecker

Copy link
Copy Markdown
Member

Dear Britbongs, you had 2000 years to come up with a term for "dritteln". It's thirdling now.

Dear Britbongs, you had 2000 years to come up with a term for
"dritteln". It's thirdling now.
Comment thread crates/edit/src/json.rs
Comment on lines +521 to +523
/// A stack allocator helps us avoid over-allocating small JSON
/// values (strings, arrays, objects). Those are rather common.
macro_rules! stack_alloc {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Despite the length of the stack allocator, it boils down to like 3 lines of assembly. lol

@lhecker
Leonard Hecker (lhecker) merged commit 4bfb9d9 into main Aug 26, 2026
13 checks passed
@lhecker
Leonard Hecker (lhecker) deleted the dev/lhecker/json-perf branch August 26, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants