Skip to content
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

feat: optimize order of entries #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

gmaclennan
Copy link
Member

This reaches into some internals of Archiver and its dependency Zip Stream in order to sort the entries that are written to the zip central directory record. By default Archiver writes the directory entries in the same order as the files are written to the zip, but this is not necessary per the zip spec. When reading a styled map package, resources like style.json can be read as soon as their directory entry is read, so putting the style.json first speeds up the initial appearance of a map when viewing an SMP.

@gmaclennan gmaclennan self-assigned this Jan 9, 2025
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