Skip to content

perf: cheaper directory listing - #101

Open
andreaTP wants to merge 1 commit into
mainfrom
perf/cheaper-directory-listing
Open

andreaTP wants to merge 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.
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