Revision 1bc0024...

Go back to digest for 17th July 2011

Optimization in Office

Robert Mathias Marmorstein committed changes in [koffice] libs/interfaces/KGenericRegistry.h:

Add const_iterator to KGenericRegistry class.

This is a partial implementation of an iterator that allows more
efficient access to the contents of the registry. Right now, we use
foreach loops and the KGenericRegistry::keys() function to loop through
the elements. This is inefficient, since it involves creating a
temporary copy of the key list. Using iterators instead can improve
performance.

File Changes

Modified 1 files
  • libs/interfaces/KGenericRegistry.h
1 files changed in total