Qt: QList and loop performance

Qt Logo

When coding with loops always take a few seconds to check what you can pull into loop initialization. Usually lists are not iterated only once so there’s a great opportunity for boosting performance. If you take the extra mile of calling QList::reserve(int) you can gain performance, too. . . . → Read More: Qt: QList and loop performance