Revision 1183350

Go back to digest for 10th October 2010

Optimization in Utilities

Jonathan Michael Thomas committed changes in /trunk/extragear/sysadmin/libqapt/src:

Add more efficient toInstallCount() and toRemoveCount() functions to Backend.
These both just grab int's already cached in memory by APT, meaning that we don't have to iterate through every Package and get a full state reading to determine whether it is being installed/removed.

File Changes

Modified 2 files
  • /trunk/extragear/sysadmin/libqapt/src
  •   /backend.cpp
  •   /backend.h
2 files changed in total