Combine final metadata traversal

This commit is contained in:
2026-10-09 00:52:55 +00:00
parent 673faea097
commit c546124029
4 changed files with 328 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
# Startup Loading Performance Roadmap
Status: Stages 1–3 complete; Stage 4 is in progress with the first optimization
Status: Stages 1–3 complete; Stage 4 is in progress with two optimizations
retained. Findings and reproduction commands are in
[startup-benchmark.md](startup-benchmark.md).
@@ -122,10 +122,11 @@ finding and recommend whether further investigation is justified.
### 4. Implement and measure focused changes
Status: In progress. `Path.String` buffer sizing is retained after fresh
construction, consumer, inspection, and profile comparisons. See the
[focused experiment](startup-benchmark.md#focused-experiment-pre-size-pathstring).
The next candidate is duplicate final-tree traversal during metadata finalization.
Status: In progress. `Path.String` buffer sizing and combined final metadata
traversal are retained after fresh construction, consumer, inspection, and
profile comparisons. See the [path-formatting experiment](startup-benchmark.md#focused-experiment-pre-size-pathstring)
and [metadata-traversal experiment](startup-benchmark.md#focused-experiment-combine-final-metadata-traversal).
Complete consumer-workload verification remains outstanding.
1. Implement the selected internal change while preserving the supported API
and established behavior. Audit any reduced copying or reused data for