move a bunch around for publishing next package#49
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
SlexAxton
added a commit
that referenced
this pull request
Apr 6, 2026
Optimize the real @pierre/path-store presorted 0→1 render path, cutting browser-profile visible-rows-ready time by 53% and Bun build time by 65%. Key optimizations: - Open-expansion visible-count fast path (skip generic recompute) - Natural-sort tokenization: replace matchAll()/regex with manual char-code scanner + cached sort keys - Skip redundant builder order validation for trusted preparedInput - Lazy segment sort keys (defer until first ordering use) - Single-pass manual scanner for splitCanonicalPath - Null-prototype object for segment table lookup - Lightweight presorted-path wrapper (defer parsing to store construction) - Specialized appendPresortedPaths one-pass parse+append - Fused path splitting with shared-prefix detection - Lazy file-path caches for bulk-ingested files - Direct string comparison replacing segment-array allocation - Deferred directory-index creation (no Maps during hot ingest loop) - Inline prefix comparison with explicit stack-top index - Fused linear passes replacing recursive computeSubtreeCounts - Lazy childPositionById and childIdByNameId (rebuilt on first mutation) - Eliminate backward-pass Map.get by moving aggregates to initializeOpenVisibleCounts - Parent-index cache in buildPresortedFinish forward pass - String.indexOf for SIMD-backed slash detection - Directory-prefix cache with native startsWith for ~90% of paths - Indexed for loop and file-node inlining in initializeOpenVisibleCounts - Inline internSegment with cached field references Experiments: #1–#49 (14 kept optimizations) Profile visible-rows-ready median: 230.1ms → 107.6ms (-53.2%) Bun presorted-first-render p50: 149.1ms → 52.6ms (-64.7%) Mutation guardrails unchanged: rename-leaf ~0.013ms, rename-root-dir ~0.724ms
SlexAxton
added a commit
that referenced
this pull request
Apr 6, 2026
* Optimize path-store presorted first render Optimize the real @pierre/path-store presorted 0→1 render path, cutting browser-profile visible-rows-ready time by 53% and Bun build time by 65%. Key optimizations: - Open-expansion visible-count fast path (skip generic recompute) - Natural-sort tokenization: replace matchAll()/regex with manual char-code scanner + cached sort keys - Skip redundant builder order validation for trusted preparedInput - Lazy segment sort keys (defer until first ordering use) - Single-pass manual scanner for splitCanonicalPath - Null-prototype object for segment table lookup - Lightweight presorted-path wrapper (defer parsing to store construction) - Specialized appendPresortedPaths one-pass parse+append - Fused path splitting with shared-prefix detection - Lazy file-path caches for bulk-ingested files - Direct string comparison replacing segment-array allocation - Deferred directory-index creation (no Maps during hot ingest loop) - Inline prefix comparison with explicit stack-top index - Fused linear passes replacing recursive computeSubtreeCounts - Lazy childPositionById and childIdByNameId (rebuilt on first mutation) - Eliminate backward-pass Map.get by moving aggregates to initializeOpenVisibleCounts - Parent-index cache in buildPresortedFinish forward pass - String.indexOf for SIMD-backed slash detection - Directory-prefix cache with native startsWith for ~90% of paths - Indexed for loop and file-node inlining in initializeOpenVisibleCounts - Inline internSegment with cached field references Experiments: #1–#49 (14 kept optimizations) Profile visible-rows-ready median: 230.1ms → 107.6ms (-53.2%) Bun presorted-first-render p50: 149.1ms → 52.6ms (-64.7%) Mutation guardrails unchanged: rename-leaf ~0.013ms, rename-root-dir ~0.724ms * review edits, mostly comments and docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
eeee