zip: bake charts straight out of an archive - #57
Merged
Conversation
Unzipping NOAA's All_ENCs.zip first costs 2.0 GiB of disk that is dead the moment the import ends. Instead the central directory is walked once and each cell is inflated when its turn comes, baked, and freed: 7,224 charts in about 12 minutes, never holding more than a worker's cells. What the engine can only read by path streams to disk at its own size, not twice it. tile57_zip_list, tile57_bake_zip_charts, tile57_bake_zip_rasters, tile57_zip_extract, and `tile57 bake archive.zip`. The bake now also writes the text and pictures a cell references beside its archive, from either source, when the chart has a directory of its own. Collecting them was the CLI's job, so nothing baked through the C ABI carried them and a pick report could name a caution note it could not show.
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.
Unzipping NOAA's All_ENCs.zip first costs 2.0 GiB of disk that is dead the moment the import ends. Instead the central directory is walked once and each cell is inflated when its turn comes, baked, and freed: 7,224 charts in about 12 minutes, never holding more than a worker's cells. What the engine can only read by path streams to disk at its own size, not twice it.
tile57_zip_list, tile57_bake_zip_charts, tile57_bake_zip_rasters, tile57_zip_extract, and
tile57 bake archive.zip.The bake now also writes the text and pictures a cell references beside its archive, from either source, when the chart has a directory of its own. Collecting them was the CLI's job, so nothing baked through the C ABI carried them and a pick report could name a caution note it could not show.