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

Fix performance regression since v2.14.0 in assembly loading #4553

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Sep 9, 2024

v2.14.0 introduced the NCBI sequence report adapter (xref https://github.com/GMOD/jbrowse-components/pull/4516/files) which allows e.g. NC_000001.11 to be displayed as chr1 in the UI)

Unfortunately there was an unexpected performance regression, due to accessing a mst observable outside of an observable context, causing it to be re-calculated for every invocation which was once per refname so it was a big slowdown

can see that loading a human FASTA takes:

before, 8000milliseconds (8s):
image

after, 10ms:
image

@cmdcolin cmdcolin added the bug Something isn't working label Sep 9, 2024
@cmdcolin cmdcolin merged commit 0f9ebb9 into main Sep 9, 2024
4 checks passed
@cmdcolin cmdcolin deleted the fix_regression_performance branch September 9, 2024 15:10
@cmdcolin cmdcolin changed the title Fix regression performance since v2.14.0 in assembly loading Fix performance regression since v2.14.0 in assembly loading Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant