Which of the two scenarios is faster?
1. Build a QList with for loop and append()
2. Use the QList
3. Delete the QList with clear()
4. Cycle back to step 1 several millions of times
1. Build a QList with for loop and append()
2. Use the QList
3. Zero the QList with a for loop
4. Cycle back to step 2 several millions of times
The Qlist is <double> and its size is about 5000
So, basiclly what I'm, asking is: which is faster a) append()+clear(), or b) using the for loop to reassing.
I'm suspecting the latter is faster but I don't know enough about how QList works.




Reply With Quote
Bookmarks