Skip to content

perf: cheaper directory listing - #101

Merged
andreaTP merged 1 commit into
mainfrom
perf/cheaper-directory-listing
Nov 4, 2026
Merged

andreaTP merged 1 commit into
mainfrom
perf/cheaper-directory-listing

Conversation

@andreaTP

Copy link
Copy Markdown

Sort a list snapshot instead of building a TreeSet, and append the entry name directly when resolving each child path.

Listing 10k entries: 5.8 -> 2.0 ms/op, 6.5 MB -> 0.8 MB/op (JDK 21, benchmark from #97).

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

Sort a list snapshot instead of building a TreeSet, and append the entry
name directly when resolving each child path. Listing 10k entries:
5.8 -> 2.0 ms/op, allocations 6.5 MB -> 0.8 MB/op.
@andreaTP
andreaTP merged commit 89bcc56 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