oxc-project
oxc-resolver
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
chore: release v11.20.1
release-plz-2026-05-28T15-25-06Z
11 minutes ago
perf: borrow relative main field instead of allocating a "./" prefix (#1187) `load_as_directory` prefixed every `main` field that didn't already start with `./` or `../` with `format!("./{main_field}")`, allocating a `String` for the common `"main": "index.js"` / `"dist/index.js"` shapes (the dominant CJS package-entry path). `CachedPath::normalize_with` treats a leading `./` (`Component::CurDir`) as a no-op, so a bare relative field collapses to the identical `CachedPath` whether or not the `./` is present. This borrows the field directly and only builds the owned `./`-prefixed form when it is actually required: - an **empty** field β must become `./` to resolve the directory itself, and - an **absolute** path β whose `RootDir`/`Prefix` head must stay behind the `./` so it is joined rather than replacing the package directory. Resolution results are unchanged (the owned form is kept for exactly the cases where `normalize_with` would otherwise diverge). π€ Generated with [Claude Code](https://claude.com/claude-code)
main
13 minutes ago
chore(deps): update dependency vite-plus to v0.1.23
renovate/vite+
17 minutes ago
perf: borrow relative main field instead of allocating a "./" prefix (#1187) `load_as_directory` prefixed every `main` field that didn't already start with `./` or `../` with `format!("./{main_field}")`, allocating a `String` for the common `"main": "index.js"` / `"dist/index.js"` shapes (the dominant CJS package-entry path). `CachedPath::normalize_with` treats a leading `./` (`Component::CurDir`) as a no-op, so a bare relative field collapses to the identical `CachedPath` whether or not the `./` is present. This borrows the field directly and only builds the owned `./`-prefixed form when it is actually required: - an **empty** field β must become `./` to resolve the directory itself, and - an **absolute** path β whose `RootDir`/`Prefix` head must stay behind the `./` so it is joined rather than replacing the package directory. Resolution results are unchanged (the owned form is kept for exactly the cases where `normalize_with` would otherwise diverge). π€ Generated with [Claude Code](https://claude.com/claude-code)
perf/main-field-borrow-skip-format
17 minutes ago
perf(cache): move package.json path into parse instead of cloning (#1186) `find_package_json_impl` cloned `package_json_path` to pass into `PackageJson::parse` so the original could outlive the call for the `.inspect`/`.inspect_err` closures that record the file dependency. This replaces the combinator chain with a `match` that **moves** `package_json_path` into `parse` and reads the dependency path back from: - `package_json.path()` on success β `PackageJson` stores the path verbatim, and - `JSONError.path` on error β set from the same input path, dropping one unconditional `PathBuf` allocation on the parse-success path. The whole block is behind `path.package_json.get_or_try_init`, so this only fires on the first parse of each unique `package.json` over the resolver's lifetime (a cache miss). Behavior is unchanged: file/missing-dependency recording, error contents, and return values are identical. π€ Generated with [Claude Code](https://claude.com/claude-code)
main
18 minutes ago
perf(cache): move package.json path into parse instead of cloning (#1186) `find_package_json_impl` cloned `package_json_path` to pass into `PackageJson::parse` so the original could outlive the call for the `.inspect`/`.inspect_err` closures that record the file dependency. This replaces the combinator chain with a `match` that **moves** `package_json_path` into `parse` and reads the dependency path back from: - `package_json.path()` on success β `PackageJson` stores the path verbatim, and - `JSONError.path` on error β set from the same input path, dropping one unconditional `PathBuf` allocation on the parse-success path. The whole block is behind `path.package_json.get_or_try_init`, so this only fires on the first parse of each unique `package.json` over the resolver's lifetime (a cache miss). Behavior is unchanged: file/missing-dependency recording, error contents, and return values are identical. π€ Generated with [Claude Code](https://claude.com/claude-code)
perf/find-package-json-move-path
21 minutes ago
perf(cache): move package.json path into parse instead of cloning `find_package_json_impl` cloned `package_json_path` to pass into `PackageJson::parse` so the original could survive for the `.inspect`/ `.inspect_err` closures that record the file dependency. Replace the combinator chain with a `match` that moves the path into `parse` and reads the dependency path back from `package_json.path()` (stored verbatim) on success or `JSONError.path` (the same path) on error, dropping one unconditional `PathBuf` allocation on the parse-success path. Behavior is unchanged: file/missing dependency recording, error contents, and return values are identical.
perf/find-package-json-move-path
45 minutes ago
perf: borrow relative main field instead of allocating a "./" prefix `load_as_directory` prefixed every `main` field that didn't already start with `./` or `../` with `format!("./{main_field}")`, allocating a String for the common `"main": "index.js"` / `"dist/index.js"` shapes. `CachedPath::normalize_with` treats a leading `./` (`Component::CurDir`) as a no-op, so a bare relative field collapses to the identical `CachedPath` whether or not the `./` is present. Borrow the field directly and only build the owned `./`-prefixed form when it is required: an empty field (must become `./` to resolve the directory itself) or an absolute path (whose `RootDir`/ `Prefix` head must stay behind the `./` so it is joined rather than replacing the package directory). Resolution results are unchanged.
perf/main-field-borrow-skip-format
48 minutes ago
Latest Branches
CodSpeed Performance Gauge
-1%
chore: release v11.20.1
#1178
23 minutes ago
6703685
release-plz-2026-05-28T15-25-06Z
CodSpeed Performance Gauge
+2%
chore(deps): update dependency vite-plus to v0.1.23
#1188
27 minutes ago
a81599c
renovate/vite+
CodSpeed Performance Gauge
+1%
perf: borrow relative main field instead of allocating a "./" prefix
#1187
27 minutes ago
4e04a04
perf/main-field-borrow-skip-format
Β© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs