-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
beet stats is slow #2370
Comments
Wow; that's pretty crazy—maybe we can do some profiling first to figure out why that line is so slow? |
This may be a silly suggestion, but since the total time only changes when songs are added/removed could we store the total time and modify it when adding/removing tracks? |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still relevant and should be reopened. |
I'm not so sure about this: Speeding this up is certainly desirable, but we don't have a clear path of action (yet). Caching as suggested by @tecosaur is not quite as simple, since this is not a statistics of the full library only, but A PR to address these questions would of course be very welcome ;) |
The first step is to acknowledge the problem. This issue has been confirmed by multiple users, so it should be reopened. For my - admittedly quite large - collection running I suppose the use case for most people is to flex with the number artists/albums/tracks in their library, so ivd consider the query variant of this command an edge case. |
Hmm, I'd think tiered caching (i.e. Merkle tree) could work nicely, no? |
With a collection of about 200k tracks, beet stats takes about 60 seconds to complete. If I comment out this one line to increment the time, it completes in 3-4 seconds. Would it be too much trouble to cache this?
beets/beets/ui/commands.py
Line 1254 in 63f5028
The text was updated successfully, but these errors were encountered: