Optimize set.pop() to advance a pointer instead of indexing. (GH-10429)



Gives approx 20% speed-up using clang depending on the number of elements in the set (the less dense the set, the more the speed-up).

Uses the same entry++ logic used elsewhere in the setobject.c code.
1 file changed