[issue23488] Random objects twice as big as necessary on 64-bit builds

Antoine Pitrou report at bugs.python.org
Fri Feb 20 11:42:26 CET 2015


Antoine Pitrou added the comment:

Yes, I noticed this when reimplementing the random module in Numba.
*Theoretically*, I think you need "long" to ensure ints are at least 32 bits. But in practice, I think CPython already needs 32-bit C ints.

(note Numpy also uses C longs internally)

> Would it be possible to benchmark this change, to ensure that it doesn't kill performances?

There is no way it can kill performance.

----------
nosy: +mark.dickinson, pitrou

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


More information about the Python-bugs-list mailing list