Replace QSet with QVector - improve cache locality