-
Notifications
You must be signed in to change notification settings - Fork 7
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
New binary file format #6
Merged
Merged
Commits on Nov 12, 2018
-
Create new sorted set score structure (binary)
The new format has an 8-byte header (count) followed by the elements data. Each element is represented by a 4-byte header and a data section. The 4-byte header contains the size of the data section. The data section is the raw data (no serialization). Example of a score file with 2 elements ("hello" and "world"): 0x0002 0x05 hello 0x05 world count size data size data 2 5 "hello" 5 "world"
Configuration menu - View commit details
-
Copy full SHA for 5ff46f8 - Browse repository at this point
Copy the full SHA 5ff46f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10cd0df - Browse repository at this point
Copy the full SHA 10cd0dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for a4ec792 - Browse repository at this point
Copy the full SHA a4ec792View commit details -
Configuration menu - View commit details
-
Copy full SHA for d64afd8 - Browse repository at this point
Copy the full SHA d64afd8View commit details -
Fix performance regression after aa12d3
The extra `seek()` calls were a performance regression
Configuration menu - View commit details
-
Copy full SHA for 1ff832b - Browse repository at this point
Copy the full SHA 1ff832bView commit details -
Remove unecessary JSON serialization
After the binary format for zsets, the JSON serialization became useless
Configuration menu - View commit details
-
Copy full SHA for c942843 - Browse repository at this point
Copy the full SHA c942843View commit details -
Always read files in binary mode
This is for consistency and to help in the future Python 3 migration
Configuration menu - View commit details
-
Copy full SHA for 4563551 - Browse repository at this point
Copy the full SHA 4563551View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba07af7 - Browse repository at this point
Copy the full SHA ba07af7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93e0b0d - Browse repository at this point
Copy the full SHA 93e0b0dView commit details -
Simplify read_element by relying on file header
Try to read the number of elements found in the file header instead of checking if 0 bytes were returned when reading
Configuration menu - View commit details
-
Copy full SHA for bee05af - Browse repository at this point
Copy the full SHA bee05afView commit details -
Convert class methods into instance methods
All these methods now share the file object (instance attribute)
Configuration menu - View commit details
-
Copy full SHA for a9ccd48 - Browse repository at this point
Copy the full SHA a9ccd48View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0e6d58 - Browse repository at this point
Copy the full SHA b0e6d58View commit details -
Add a string test to exercise unicode chars
Before the binary file manipulation, special unicode characters were not handled well
Configuration menu - View commit details
-
Copy full SHA for 8113842 - Browse repository at this point
Copy the full SHA 8113842View commit details
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.