Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADT] Make set_subtract more efficient when subtrahend is larger (NFC) (
#98702) If the subtrahend is larger, iterate the minuend set instead. Noticed when subtracting a large set from a number of other smaller sets for an upcoming MemProf change, this change makes that much faster. I subsequently found a couple of callsites in one file that were calling set_subtract with a vector subtrahend, which doesn't have the "count()" interface. Add a separate helper for subtracting a vector.
- Loading branch information