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 binary transport #42

Closed
xhluca opened this issue Apr 14, 2021 · 1 comment · Fixed by #43
Closed

Add binary transport #42

xhluca opened this issue Apr 14, 2021 · 1 comment · Fixed by #43

Comments

@xhluca
Copy link

xhluca commented Apr 14, 2021

Binary transport will potentially lower the size of the arrays being passed to JS, and might speed up the process as well.

How we could implement it: Given a numpy array, we compute the shape, the dtype, the b64 encoded memory view of the flattened numpy array. Then those three values are passed as a dict/json to the frontend, which is then reconstructed into a typedarray. The plan would be to use this function on the python side.

For more information, see this pull request as well as plotly/plotly.py#2943

@jourdain
Copy link
Collaborator

Done in #43

@xhluca xhluca mentioned this issue Apr 16, 2021
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

Successfully merging a pull request may close this issue.

2 participants