[issue21922] PyLong: use GMP

Hristo Venev report at bugs.python.org
Sat Jul 5 14:51:54 CEST 2014


Hristo Venev added the comment:

PyLongObject is a PyVarObject. It contains many mp_limb_t's. There is little overhead. For some operations if the result is in [-20;256] no memory will be allocated. There are special codepaths for 1-limb operations.

And I just finished GDB support.

Please test if it works for you.

----------
keywords: +patch
Added file: http://bugs.python.org/file35867/pygmp.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21922>
_______________________________________


More information about the Python-bugs-list mailing list