7 ms·Since this is pure Python performance you might want to give the different algorithms a try on PyPyby pjenvey 13y agoSince this is pure Python performance you might want to give the different algorithms a try on PyPy