Revision e8573cd...
Go back to digest for 28th August 2011Optimization in Utilities
Jonathan Michael Thomas committed changes in [libqapt] /:
OPTIMIZE: Add Backend::markPackages() to mark multiple packages at once.
It utilizes event compression, avoiding additional internal dependency checking or emitting
packageChanged() signals until everything is marked. This makes it about 66% faster than
individually marking packages in a for loop. (Marking 77 packages went from 3s to 1s)
File Changes
Modified 3 files
- src/backend.cpp
- src/backend.h
- src/package.cpp
3 files changed in total