GNOME Bugzilla – Bug 395069
when filtering threads, can use a linear algorithm instead of O log N
Last modified: 2007-01-12 15:05:14 UTC
When filtering threads, `fail' is a sorted container. We append another sorted range to the end of it, then use STL sort and unique/erase to resort the container and remove duplicates. Since both the original `fail' and the new range are both sorted, we can merge them and remove duplicates in linear time by using std::set_union.
Created attachment 79965 [details] [review] use set_union rather than sort/unique/erase