perf(biome_package): improve performance of biome_package#6732
Conversation
🦋 Changeset detectedLatest commit: 3b8b116 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…y membeers arrow function body too for mutation
…y membeers arrow function body too for mutation
…y membeers arrow function body too for mutation
…file by only parsing allowed list of properties instead of all entries
3efefe8 to
53cb32d
Compare
|
It seems that CodSpeed doesn't trigger because the paths are outdated biome/.github/workflows/benchmark.yml Lines 10 to 24 in 7bf9a60 We should update them, and trigger it also for |
interesting, GitHub action disallows top level yaml vars, wanted to define 'paths' as a peer of 'on', but not allowed, |
CodSpeed Performance ReportMerging #6732 will improve performances by 53.09%Comparing Summary
Benchmarks breakdown
|
arendjr
left a comment
There was a problem hiding this comment.
Nice work!
Just one tiny change because I fear we could get a slight performance regression in the resolver otherwise.
| "@biomejs/biome": patch | ||
| --- | ||
|
|
||
| Improved performance of the `biome_package` parser [#6281](https://github.com/biomejs/biome/issues/6281) by filtering out unnecessary JSON entries in package.json. |
There was a problem hiding this comment.
The changesets are meant for end users. This means that we should craft their content for them. In this case, biome_package isn't something that users know about. Instead, we could just say that we improved the performance of parsing and deserialisation of the package.json files.
|
|
||
| pub(crate) raw_json: JsonObject, | ||
| pub author: Option<JsonValue>, | ||
| pub exports: Option<JsonValue>, |
There was a problem hiding this comment.
Definitely not for this PR, but we could evaluate a better deserialisation based on the docs https://nodejs.org/api/packages.html#package-entry-points
There was a problem hiding this comment.
shall we raise a task for it?
Co-authored-by: Emanuele Stoppa <[email protected]>
Co-authored-by: Emanuele Stoppa <[email protected]>
Summary
Improved performance of the

biome_packageparser by filtering out unnecessary JSON entries in package.json.closes [#6281]