Hi again @dosisod,
One thing I'd like to suggest is adding performance checks.
- Certain kinds of loops will benefit from being chained using
itertools.chain, and in general itertools offers better performance in many cases.
- Other things are using the builtins,
filter, map and reduce, which can be significantly faster than simple python code because of pythons native optimizations.
- Usage of sets for lookup (
in checks, is dramatically faster than list/tuple lookup).
Hi again @dosisod,
One thing I'd like to suggest is adding performance checks.
itertools.chain, and in generalitertoolsoffers better performance in many cases.filter,mapandreduce, which can be significantly faster than simple python code because of pythons native optimizations.inchecks, is dramatically faster than list/tuple lookup).