<table><tr><td style="">dfaure added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9318" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Well, if this QSet can be huge, then these conversions from QList and to QList are going to take a lot of CPU.<br />
Are you sure it wouldn't be much faster to do a linear search at append time, in exchange for saving all those temporary-containers conversions?<br />
This code looks VERY slow to me, due to the large amount of temporary memory allocations, and linear container conversions.</p>

<p>IMHO the method that returns a List forces us to keep using a List as the data structure.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R304 KNewStuff</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9318" rel="noreferrer">https://phabricator.kde.org/D9318</a></div></div><br /><div><strong>To: </strong>anthonyfieroni, leinir, Frameworks<br /><strong>Cc: </strong>dfaure, broulik<br /></div>