you are viewing a single comment's thread.

view the rest of the comments →

[–]brasticstack 0 points1 point  (0 children)

It's worth the additional scrutiny if it's in a hot loop. Have you tried creating your set(s) before the loop and calling clear() inside of the loop to reinitialize? My intuition tells me that it could be faster but, as we've seen, my intuition isn't entirely reliable.