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

Change media widgets to use memory views. #2723

Merged
merged 5 commits into from
Jan 17, 2020

Conversation

jasongrout
Copy link
Member

@jasongrout jasongrout commented Jan 11, 2020

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

This can be more efficient with fewer copies in some cases, such as uploading a file and setting the value from the file content.
@SylvainCorlay
Copy link
Member

We should check the impact of this on ipywebrtc.

@pbugnion
Copy link
Member

As part of the work on this, we should change the docs for the file upload widget to avoid an unnecessary .tobytes() when embedding the uploaded content in an image widget (x-ref #2722).

@jasongrout
Copy link
Member Author

We should check the impact of this on ipywebrtc.

@maartenbreddels - are you able to do this?

@jasongrout
Copy link
Member Author

jasongrout commented Jan 17, 2020

We should check the impact of this on ipywebrtc.

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?

@jasongrout
Copy link
Member Author

Merging - if it is an issue, especially with ipywebrtc or some other downstream library, we can revert.

@jasongrout jasongrout merged commit dfe34fc into jupyter-widgets:master Jan 17, 2020
@lock lock bot added the resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label May 20, 2020
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants