Revision 1b2444f...
Go back to digest for 13th January 2013Optimization in KDE-PIM
Christian Mollekopf committed changes in [kdepim-runtime/KDE/4.10] /nepomukfeeder:
Stay away from nested event-loops.
This was potentially using a lot of memory, as the foreach loop would
result in n jobs which aren't freed until the end of the function (and n
can grow to the amount of items in the akonadi db). Further, collections
were potentially repeatedly fetched.
This patch should therefore not only remove the nested event-loops, but
also improve performance and memory usage.
File Changes
Modified 2 files
- /nepomukfeeder
- agentsagent.cpp
- agentsagent.h
2 files changed in total