[pypy-dev] Support for __getitem__ in rpython?

Armin Rigo arigo at tunes.org
Tue Dec 23 15:44:26 CET 2008


Hi Paolo,

On Tue, Dec 23, 2008 at 12:29:01PM +0100, Paolo Giarrusso wrote:
> There are at least two ways, once you have a singleton (maybe static)
> None object around:
> - box all integers and use only pointers - the slow one;
> - tagged integers/pointers that you already use elsewhere. So integers
> of up to 31/63 bits get represented directly, while the other ones are
> through pointers.

Yes, we're using both ways, but for app-level integers, not for regular
RPython-level integers.  That would be a major slow-down.


A bientot,

Armin.



More information about the Pypy-dev mailing list