I just did a test with the two functions and, on my old laptop and loading a QMap<int,int> with 20 million int pairs, I got a time of: + 1 m 41 s for case 1 + 1 m 31 s for case 2. With 20 thousand int pairs (a size more likely in my problem domain) the difference was less than 0.2 s. -Tom