-
Notifications
You must be signed in to change notification settings - Fork 1
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
Plugin is very slow to start #141
Comments
Agreed. It's not horrible but a bit weird that it takes so long (tested on Win11 and on a flavor of Linux in a VM) |
This is also the same with the atlas manager widget, so not sure what's going on here. |
Thanks - what I would naively take from it is: out of the 24 seconds it takes to add the widget to napari, it takes 12 seconds each to
A possible improvement for the first part would be to cache the latest versions locally, and have a button that checks for updates remotely? So this is not done every time (GIN is not going to change daily) see #127 We could also precompute the legible name if that function is so slow? |
I'm not sure that's the problem. I think getting the latest versions takes 2ms, but it's taken a total of 12 seconds before it gets to that point. |
This returns import timeit
start = timeit.timeit()
from brainglobe_atlasapi.list_atlases import get_all_atlases_lastversions
versions = get_all_atlases_lastversions()
end = timeit.timeit()
print(end - start) |
Right, OK, that makes more sense - thanks. |
I will try to see if I can reproduce this on other machines, but on my Ubuntu 20.04 machine, the plugin takes a very long time to start (~20s). Other plugins start as normal.
The text was updated successfully, but these errors were encountered: