Translations:Development/Tutorials/Common Programming Mistakes/44/en

From KDE TechBase

Cache the return of the end() (or constEnd()) method call before doing iteration over large containers. For example: