Skip to content

feat!: Optimize JSON key deserialization with arena-based interning - #490

Open
Anand Krishnamoorthi (anakrish) wants to merge 1 commit into
microsoft:mainfrom
anakrish:object-opt
Open

feat!: Optimize JSON key deserialization with arena-based interning#490
Anand Krishnamoorthi (anakrish) wants to merge 1 commit into
microsoft:mainfrom
anakrish:object-opt

Conversation

@anakrish

Copy link
Copy Markdown
Collaborator
  • Add KeyArena in src/string.rs for per-document string deduplication
  • Refactor Value deserialization to intern object keys via ValueSeed
  • Ensure no_std compatibility with hashbrown + FxHasher
  • Add unit test confirming Rc reuse across deserialized objects
  • Update Cargo.toml with hashbrown and rustc-hash dependencies

Comment thread src/string.rs Fixed
Comment thread mimalloc/mimalloc-sys/build.rs Fixed
Comment thread mimalloc/mimalloc-sys/build.rs Fixed
Comment thread mimalloc/mimalloc-sys/build.rs Fixed
- Add KeyArena in src/string.rs for per-document string deduplication
- Refactor Value deserialization to intern object keys via ValueSeed
- Ensure no_std compatibility with hashbrown + FxHasher
- Add unit test confirming Rc<str> reuse across deserialized objects
- Update Cargo.toml with hashbrown and rustc-hash dependencies

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

:shipit:

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.

3 participants