Re:The Set data structure saved me from a world of pain
by cgriswald on Sunday October 18, 2020 @04:33PM
(#24820919)
I've had numerous occasions where doing set() on a python list was demonstrably faster for very large n with an unknown distribution rather than iterating through and potentially exiting early. I've always just assumed set() is doing the equivalent thing, but in the underlying C rather than in python.
[ Parent
| on HN ]
There are no comments on this comment yet.