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

Faster event delegation in WebAgg/NbAgg backends #5385

Merged
merged 1 commit into from Nov 3, 2015

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Nov 3, 2015

The if/else block is slower than a dictionary lookup/method call

The if/else block is slower than a dictionary lookup/method call
@tacaswell
Copy link
Member

How much does this speed things up?

pelson added a commit that referenced this pull request Nov 3, 2015
Faster event delegation in WebAgg/NbAgg backends
@pelson pelson merged commit 6ab4ecb into matplotlib:master Nov 3, 2015
@pelson
Copy link
Member

pelson commented Nov 3, 2015

How much does this speed things up?

Given we're talking about sending PNGs over http I'd be amazed if this were measurable. Despite that, 👍 from me as it tidies up the code nicely.

@mdboom
Copy link
Member Author

mdboom commented Nov 3, 2015

I was able to peak about 15 fps with this, 13 without. Not much, but not nothing.

@mdboom mdboom deleted the nbagg-event-delegation branch November 10, 2015 02:46
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 this pull request may close these issues.

None yet

3 participants