-
Notifications
You must be signed in to change notification settings - Fork 11
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
Increase rendering performance #78
Conversation
Preview page for your plugin is ready here: |
Just checked the performance on some larger trees, it works great! 🚀 |
Codecov Report
@@ Coverage Diff @@
## main #78 +/- ##
==========================================
- Coverage 96.28% 93.30% -2.99%
==========================================
Files 16 16
Lines 538 612 +74
==========================================
+ Hits 518 571 +53
- Misses 20 41 +21
Continue to review full report at Codecov.
|
Looks great! :) All trees show, the single-branch tracks are centred and the performance seems to be better than before (didn't run into the kernel crashing yet). But in the meantime, we lost the y-axis next to the tree [as in #46]. |
I did some profiling of the rendering code using
examples/show_large_tree.py
and 255 nodes (depth 8):It looks like a lot of the time is in adding subvisuals, so I had a go at setting things up with a single subvisual for all branches. This gets the performance to a much better state:
0.14 seconds versus 4.88 seconds. We will probably want to look at the graph searching algorithms at some point, but this is a good start.
This also merges the small changes in #77, so I will close that one.