Comment 18 for bug 1713219

Revision history for this message
Jarno Suni (jarnos) wrote : Re: 'apt-mark showauto' and 'apt show' is slow

Well, the script in the description is a bit too simple. In my application, I was looking for 'Auto-Installed:' field with value 0 to find manually installed packages, and due to the change in the way the file is build nowadays I do not find them by the code anymore. Now the field is pointless. I suppose now I could find the packages by set substraction, if I want to optimize my code.

"time apt-mark showauto >/dev/null"
is slow no matter when I run it. It is about the same if you run it for any single package. Do you call those a borderline cases? It might not be slow by latest and greatest supercomputers though, but I make code for slower hardware, too, and try to strive for reasonable responsiveness in my applications.