0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-23 21:53:26 -05:00
denoland-deno/cli/rt
David Sherret 55b19e3e7a
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-30 15:34:56 +01:00
..
binary.rs perf(compile): remove swc from denort (#27721) 2025-01-22 00:24:21 +01:00
build.rs refactor: move denort to separate crate (#27688) 2025-01-22 00:24:19 +01:00
Cargo.toml refactor: add WorkspaceFactory and ResolverFactory (#27766) 2025-01-30 15:34:53 +01:00
code_cache.rs refactor: move denort to separate crate (#27688) 2025-01-22 00:24:19 +01:00
file_system.rs perf(compile): remove swc from denort (#27721) 2025-01-22 00:24:21 +01:00
integration_tests_runner.rs refactor: move denort to separate crate (#27688) 2025-01-22 00:24:19 +01:00
main.rs refactor: move denort to separate crate (#27688) 2025-01-22 00:24:19 +01:00
node.rs refactor: add WorkspaceFactory and ResolverFactory (#27766) 2025-01-30 15:34:53 +01:00
run.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-30 15:34:56 +01:00