0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-22 21:23:32 -05:00
denoland-deno/resolvers/node
David Sherret 679902a108
perf(node_resolver): reduce url to/from path conversions (#27839)
Extracted out of https://github.com/denoland/deno/pull/27838/files

Reduces some allocations by accepting either a pathbuf or url for the
referrer for resolution and returning either a pathbuf or url at the
end, which the caller can then convert into to their preferred state.

This is about 4% faster when still converting the final result to a url
and 6% faster when keeping the result as a path in a benchmark I ran.
2025-01-27 15:23:20 -05:00
..
analyze.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00
builtin_modules.rs refactor: add WorkspaceFactory and ResolverFactory (#27766) 2025-01-23 18:52:55 -05:00
Cargo.toml perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00
clippy.toml refactor: move ByonmNpmResolver to deno_resolver (#25937) 2024-09-30 13:33:32 +00:00
errors.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00
lib.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00
npm.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00
package_json.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00
path.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00
README.md refactor: extract out sloppy imports resolution from CLI crate (#25920) 2024-09-28 19:17:48 -04:00
resolution.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00
sync.rs refactor: make PackageJsonCache injectable (#27800) 2025-01-24 09:50:25 -05:00

Node Resolver

crates docs

Provides Node.js compatible resolution for the Deno project.