Momergil
13th June 2014, 14:36
Hello!
This is a quesiton similar to this old one: http://www.qtcentre.org/threads/59278-What-s-the-fastest-QVector-operation?p=263368
What should be the fastest operation to make? (provided that the QList is at least a little big, lets say 100 items or more)
1. QList::reserve()
2. QList::resize()
3. QList::insertAt()
vs.
1. QList::reserve()
2. QList::append() repeatedly, till QList::size() == reserved
This is a quesiton similar to this old one: http://www.qtcentre.org/threads/59278-What-s-the-fastest-QVector-operation?p=263368
What should be the fastest operation to make? (provided that the QList is at least a little big, lets say 100 items or more)
1. QList::reserve()
2. QList::resize()
3. QList::insertAt()
vs.
1. QList::reserve()
2. QList::append() repeatedly, till QList::size() == reserved