I'm translating an old application into qt...
I started doing a QList < QString > as it was the original algorithm, but this was meaning looking into the string everytime I needed a value.
I now translated the <QString> into a QHash <int, QString>, witch applies perfectly to my purpose...
BUT NOW...
When I do QList::clear() ... this turn into an extremely slow operation, 3x more slow then keeping my old algorithm.
What can I do to improve performances of clear() ??? Does it dependes on QList or on QHash???
Do I have to turn into a QSqlTableModel??? But this would mean to break all old algorithms and the Boss wouldn't be happy
Bookmarks