CoVaRR-NET / duotang

Scripts and data for the CoVaRR-Net Pillar 6 notebook
https://covarr-net.github.io/duotang/duotang.html
MIT License
1 stars 2 forks source link

Interactive frequency barplots #169

Open bfjia opened 1 year ago

bfjia commented 1 year ago

We need a custom implementation for the interactive barplots. Based on a profile of the page that Art did, Plotly is taking up significantly load time.

ArtPoon commented 1 year ago

Here is a profile in Chrome. The section I have selected is a call to r._doPlot, which is a plotly function. I estimate rendering these barplots consumes about 2s of 8s page load:

Screenshot 2023-04-02 at 12 36 02 PM

The red dashes at the top of the profile are flagged performance bottlenecks.

The next three sections are calls to updateTree (rendering the three diferent interactive trees). Each tree requires about 600 - 800 ms to render.

ArtPoon commented 1 year ago

We should not be rendering time-scaled and "diversity" trees as separate objects - that should eliminate a substantial portion of load time. Implementing tree zoom to replace the Omicron and XBB trees should also help (#139)