nextstrain / auspice

Web app for visualizing pathogen evolution
https://docs.nextstrain.org/projects/auspice/
GNU Affero General Public License v3.0
291 stars 161 forks source link

PERF: Frequency panel is slow when there are 2000 possible colorings #1582

Open corneliusroemer opened 1 year ago

corneliusroemer commented 1 year ago

I've noticed that the frequency panel is very laggy even on high-end hardware when there are 2000 possible colorings (as for Nextclade lineages) in the Europe build: https://nextstrain.org/groups/neherlab/ncov/denmark?branchLabel=Spike%20mutations&c=Nextclade_pango&label=Spike%20mutations:G446S,%20N460K,%20R493Q

Not sure whether something can be done to deal with this performance bottleneck.

Maybe pruning everything below a certain threshold from the frequency panel, for example: everything that never makes up more than 1% gets put into other. slow-frequency-panel

jameshadfield commented 1 year ago

I think this is the map - can you try turning that off (toggle in sidebar) and seeing if the performance improves?

victorlin commented 1 year ago

@corneliusroemer bump