neuronlistz - fast access to neuronlists stored as zip files#456
Merged
neuronlistz - fast access to neuronlists stored as zip files#456
Conversation
* 3 cores can reduce time ~ 40% in my tests
* I will remove some of this but useful for testing purposes
* this is about 10x faster than gzip for raw compression speed in my tests * including the overhead of writing files etc * this is so fast that it doesn't seem to pay to parallelise writing, so I am tempted to revert support for that
* I think this is probably preferable since there is a CRAN package supporting this rather than it being a roll your own solution * also does actually give time space savings of 5-15% and does not require memory allocation within R
* currently writes in rds format * should probably consider csv e.g. if writing neurons in SWC rather than rds format
* we will not end up using most of these ...
* just unzipping to tmp works best for small to medium files
Collaborator
Author
|
@alexanderbates first pass at storing neuronlists as efficient zip files for random access |
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.
You can also embed the metadata in the zip so that one file should contain everything.
For 3GB files, I get 20ms per record random access. Faster performance (order 5ms) could be obtained with https://github.com/jefferis/razip. Reading sequential groups of files is much faster.