-
Notifications
You must be signed in to change notification settings - Fork 14
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
Avoid/eliminate pickle for storing/loading a code table #17
Comments
You have options:
|
soxofaan
added a commit
that referenced
this issue
Jul 13, 2024
- Refactor out pickle save/load from PrefixCode - Initial JSON based code table storage
soxofaan
added a commit
that referenced
this issue
Jul 13, 2024
soxofaan
added a commit
that referenced
this issue
Jul 13, 2024
- Refactor out pickle save/load from PrefixCode - Initial JSON based code table storage
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PrefixCodec.save()
(and.load()
) currently use pickle to persist the code table to a file.While this has the advantage that it handles Python data structures out of the box, it has a couple of disadvantages:
The most obvious alternative is JSON.
The text was updated successfully, but these errors were encountered: