We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Instead of encoded data send it as byte strings for performance?
The text was updated successfully, but these errors were encountered:
From a size perspective, as expected, there is no real difference:
data = json.dumps({"a": np.random.normal(size=((500, 500))).tolist()}) print((sys.getsizeof(data) * ureg.byte).to(ureg.megabyte)) # 5.158796 megabyte print((sys.getsizeof(data.encode()) * ureg.byte).to(ureg.megabyte)) # 5.158788 megabyte
Sorry, something went wrong.
No branches or pull requests
Instead of encoded data send it as byte strings for performance?
The text was updated successfully, but these errors were encountered: