0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-20 12:22:52 -05:00
denoland-deno/resolvers/deno
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
..
npm perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-30 15:34:56 +01:00
Cargo.toml refactor: add WorkspaceFactory and ResolverFactory (#27766) 2025-01-30 15:34:53 +01:00
cjs.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-30 15:34:56 +01:00
clippy.toml refactor: add 'sync' feature to deno_resolver crate (#27357) 2025-01-09 15:19:08 -05:00
factory.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-30 15:34:56 +01:00
lib.rs perf(node_resolver): reduce url to/from path conversions (#27839) 2025-01-30 15:34:56 +01:00
npmrc.rs refactor: add WorkspaceFactory and ResolverFactory (#27766) 2025-01-30 15:34:53 +01:00
README.md refactor: extract out sloppy imports resolution from CLI crate (#25920) 2024-09-28 19:17:48 -04:00
sloppy_imports.rs refactor(npm): move SloppyImportsCachedFs to deno_resolver (#27610) 2025-01-16 23:32:08 +01:00
sync.rs refactor: remove CliNpmReqResolver trait in deno_resolver (#27616) 2025-01-16 23:32:09 +01:00

deno_resolver

Deno resolution algorithm.