4 ms·
Chapter performance, use set instead list: If you convert a complete list to a set only to check if a values in a list this is not performant. Use list.index or
by wingi 11y ago
Chapter performance, use set instead list: If you convert a complete list to a set only to check if a values in a list this is not performant. Use list.index or binary search instead. But for every performance example you should offer a micro benchmark example.
- ThePhysicist 11y agoyou're absolutely right, will point this out in the next version. As said before, if you think something could be improved, feel free to contribute!