_fastmath does not not access internals of PyLongs anymore.
Once I got the whole library running though, it was interesting to see that PyCrypto becomes significantly slower in PyPy by a factor of ~30%, and that does not seem related to the code I changed.
BTW, not compiling _fastmath would make public key operation unbearably slow.
I have just opened a pull request here:
https:/ /github. com/dlitz/ pycrypto/ pull/59
_fastmath does not not access internals of PyLongs anymore.
Once I got the whole library running though, it was interesting to see that PyCrypto becomes significantly slower in PyPy by a factor of ~30%, and that does not seem related to the code I changed.
BTW, not compiling _fastmath would make public key operation unbearably slow.