Skip to content

perf: cheaper path parsing - #100

Merged
andreaTP merged 1 commit into
mainfrom
perf/cheaper-path-parsing
Nov 4, 2026
Merged

andreaTP merged 1 commit into
mainfrom
perf/cheaper-path-parsing

Conversation

@andreaTP

Copy link
Copy Markdown

Skip joining for a single string, skip normalization when none is configured, and copy the name list once instead of four times.

getPath + resolve: ~790 -> ~460 ns/op, 2.5 KB -> 1.25 KB/op (JDK 21, benchmark from #97).

Checked with Endive (wasi-tests, machine-tests, wabt, Zig stdlib suite): no regressions.

Skip joining for a single string, skip normalization when none is
configured, and copy the name list once. getPath + resolve: ~790 -> ~460
ns/op, allocations halved (2.5 KB -> 1.25 KB/op).
@andreaTP
andreaTP merged commit d25a453 into main Nov 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant