Skip to content
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

Add compression approach to Numpy arrays when passed through JSON encoder #321

Open
dotsdl opened this issue May 28, 2024 · 0 comments
Open

Comments

@dotsdl
Copy link
Member

dotsdl commented May 28, 2024

It may be possible to reduce the size of ProtocolDAGResults and other GufeTokenizables that require the use of numpy arrays for storing numerical data if we apply compression against the byte form of the array, followed by base64 encoding the compressed form for inclusion in the JSON-serialized form. It's unclear a priori by how much this will reduce sizes, but may be better than including the data in uncompressed byte form as we do currently.

For high decompression speed, use of python-zstandard might be the best approach.

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

No branches or pull requests

1 participant