Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
PyIterator - Recursive | 2023-05-27 | ||
PyIterator - Nested Loops | 2023-05-27 | ||
copying.txt | 2023-05-27 | 1.5 kB | |
README.txt | 2023-05-27 | 626 Bytes | |
Totals: 4 Items | 2.2 kB | 0 |
Jon's Die Iterator, Python 3 Versions These are two different Python implementations of my Cumulative die iterator, originally written in C. As you might expect, they are much slower, although when run by PyPy rather than CPython, their performance is much improved. One interesting note: when run in PyPy the nested loops version is faster, as you would expect. However, the recursive function version is faster when they are run with CPython. If anybody has any insight into this unusual behavior, feel free to drop me a line at jonathanbrewer18 [at] gmail [dot] com with "pyiterator behavior" in the subject line. Enjoy!