Closed tacaswell closed 2 years ago
I still think this is technically cheating, because other languages probably don't optimize the muladd
outside the loop, but idk
I think it is probably fine. It closes the gap a little bit with CPython, but it is not changing things too wildly. PyPy actually benefits the most.
Thank you for your contribution @tacaswell 👍
This eliminates a muliplication and an addition in the hot loop.
Also explicit make all the literals floats which will marginally help with py311+.