-
Notifications
You must be signed in to change notification settings - Fork 17
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
Querying the local database is sometimes slow #133
Comments
Well, you're asking yaourt to sync AUR database by passing the But I'm thinking this could probably be related to |
I see the same behavior for
I got this technique from a Stack Overflow answer.
The last set of commands is the first time that sudo is used. Note that it comes after the slow down for |
Today I tried running |
Thanks for the update! |
|
I guess it could be the time required to load sync dbs into the memory. package-query is using pacman's library (libalpm) functions so it essentially comes to how db files are processed by the library. |
Yes, I don't think anything can be done by package-query to help with this. It seemed like the pacman command took the same time, but I didn't have good statistics. If you think of anything else to try for debugging let me know, but I will close the issue now. I asked on the pacman mailing list and was told the command loads everything in /var/lib/pacman/local but still should be fast. I tried removing all orphaned packages plus some others I didn't need. I will see if that makes it faster (total number only dropped from 1700 to 1600). |
The first time I run
yaourt -Syua
each day it takes a long time (20-60 seconds) before prompting for a password for sudo. I did some profiling and narrowed it down to this command:It seems like the first time I run that command each day it is slow and then after that it is fast (less than half a second), though I'm not sure it is exactly once a day.
I think the
--aur-url ...
is just there because of the wayyaourt
wrapspackage-query
and doesn't do matter here because this is a local database query (if it were connecting to the aur I could understand the variable time). Do you have any idea why the speed varies like this? I thought maybe a large shared library could be getting loaded and cached into memory and that was why subsequent tries were fast, butpackage-query
and all of its dependencies seem very small.The text was updated successfully, but these errors were encountered: