-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Misc perf improvements #1772
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
Merged
Merged
Misc perf improvements #1772
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
032cf7c
get rid of Lib.getPlotDiv
alexcjohnson c02204f
short-circuit title draw if there's no title
alexcjohnson b4a2f4d
drop the unneeded initial draw of axes
alexcjohnson b9c33c9
add perf tester to global scope in test dashboard
alexcjohnson ea883e6
cache bounding boxes by node contents instead of by data-bb attr
alexcjohnson 11f4a0e
Merge branch 'master' into misc-perf
alexcjohnson a511bd2
clear bbox cache to fix bar test
alexcjohnson 434dc0e
standardize fail logic in bar test
alexcjohnson d077e32
more failure info in cartesian_interact_test
alexcjohnson 3132624
cleanup cartesian_interact_test a little
alexcjohnson 00c7ad5
remove unused dragElement.init option 'doubleclick'
alexcjohnson 2da3544
cleaner delay pattern in pan tester
alexcjohnson dc4fc32
robustify cartesian_interact_test doubleclicker
alexcjohnson 0129d5a
simplify dragElement cursor handling & remove redundant initInteractions
alexcjohnson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Man, this one was brutal - the key was that (locally, in chrome, when running multiple tests) it was seeing a previous click (from the same test, despite the fact that it still cared whether another test had been run before this one) too close to the first click of the doubleclick, and ended up responding as if there were two doubleclicks - which I still don't quite understand, I didn't think a triple-click would look like two doubles, but anyway this works and we can use this in the future (similar to your trick with
gd._lastHoverTime
@etpinard ) to cut down on unnecessary delays in the test suite.For future reference @etpinard since we talked about potentially doing this, I went off on a dead end for a while when I noticed that calling
Plotly.purge(gd)
duringdestroyGraphDiv
caused all sorts of problems... That turns out to be unrelated, that sometimes there are some things still waiting to happen on the plot after tests have finished (likerehover
) which will fail (and confusingly attribute the failure to the next test that's run, since it's happening async) if we've purged the plot of attributes likeemit
but they still complete without failure if all we've done is remove thegd
from the DOM.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for writing down the details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 nice work