-
Notifications
You must be signed in to change notification settings - Fork 947
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
Change media widgets to use memory views. #2723
Conversation
This can be more efficient with fewer copies in some cases, such as uploading a file and setting the value from the file content.
1f4e7f3
to
0680330
Compare
We should check the impact of this on ipywebrtc. |
As part of the work on this, we should change the docs for the file upload widget to avoid an unnecessary |
@maartenbreddels - are you able to do this? |
It may be easiest to do this with an alpha release of ipywidgets with this merged in. Can we merge this in, and revert later if there are problems? |
Merging - if it is an issue, especially with ipywebrtc or some other downstream library, we can revert. |
This can be more efficient with fewer copies in some cases, such as uploading a file and setting the value from the file content. Also, the deserialization does not involve a copy anymore.
CC @pbugnion, @maartenbreddels