perf: use simd-json for package.json parsing#761
Conversation
How to use the Graphite Merge QueueAdd the label merge to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #761 +/- ##
==========================================
- Coverage 95.09% 94.18% -0.91%
==========================================
Files 16 16
Lines 2974 3028 +54
==========================================
+ Hits 2828 2852 +24
- Misses 146 176 +30 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CodSpeed Performance ReportMerging #761 will degrade performances by 10.89%Comparing Summary
Benchmarks breakdown
Footnotes
|
81e3b03 to
097e5c7
Compare
bc9e74c to
501e2fd
Compare
Merge activity
|
## Summary Replace `serde_json` with `simd-json` using `BorrowedValue` for zero-copy JSON parsing. Uses `self_cell` to manage the self-referential structure where the parsed JSON borrows from the original string. Breaking change: * raw API with `package_json_raw_json_api` feature is removed. * Returned error no longer has line and column information. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
501e2fd to
c2da024
Compare
30 - 60% performance improvement + huge memory reduction from oxc-project/oxc-resolver#761
Summary
Replace
serde_jsonwithsimd-jsonusingBorrowedValuefor zero-copy JSON parsing. Usesself_cellto manage the self-referential structure where the parsed JSON borrows from the original string.Breaking change:
package_json_raw_json_apifeature is removed.🤖 Generated with Claude Code