Skip to content

feat: optimize order of entries#37

Merged
gmaclennan merged 2 commits intomainfrom
feat/optimize-entries
Feb 17, 2026
Merged

feat: optimize order of entries#37
gmaclennan merged 2 commits intomainfrom
feat/optimize-entries

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
@gmaclennan gmaclennan merged commit 970ea3f into main Feb 17, 2026
11 checks passed
@gmaclennan gmaclennan deleted the feat/optimize-entries branch February 17, 2026 11:26
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