Skip to content

perf: single chunk map #19757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

privatenumber
Copy link
Contributor

@privatenumber privatenumber commented Mar 31, 2025

Important

This is a PR against #19723, which should be merged first. Review this PR via privatenumber#2

Description

Previously, each chunk maintained its own registry mapping chunk paths to IDs for preloading, reducing string usage to save space. However, this registry was recreated for every chunk, even though a shared utility handled the actual preloading—which seemed like a more suitable place for this logic.

With this change, the chunk path-to-ID mapping is centralized in the shared preload method, eliminating repetitive chunk registries. I expect to see minor size improvements in apps that produce many chunks.

@privatenumber privatenumber force-pushed the singular-chunk-map branch 6 times, most recently from 878f4d8 to 9ec1f7b Compare March 31, 2025 14:05
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