0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-01 20:25:12 -05:00
denoland-deno/resolvers/deno/npm/managed
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
..
common.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00
global.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00
local.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00
mod.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-27 15:23:20 -05:00
resolution.rs refactor: move CliNpmResolver to deno_resolver::npm::NpmResolver (#27659) 2025-01-14 10:01:05 -05:00