3 ms·
Few years ago I wrote this thing: https://github.com/adh/py-clos https://github.com/adh/py-clos It can also do dispatch on multiple arguments and on equality a
by dfox 7y ago
Few years ago I wrote this thing: https://github.com/adh/py-clos https://github.com/adh/py-clos
It can also do dispatch on multiple arguments and on equality and has dispatch cache implemented as C extension (from my rudimentary measurements it seems that dispatch with cache hit is actually slightly faster than normal CPython method call).