[pypy-dev] SmallTuples
Benjamin Peterson
benjamin at python.org
Thu May 26 05:07:31 CEST 2011
2011/5/25 Alex Gaynor <alex.gaynor at gmail.com>:
> I have a question about SmallTuples. Why do we have multiple classes,
> rather than doing the "hack" of mallocing a single block of memory for the
> entirety of the object, since it is immutable and we can know the needed
> space up front, CPython uses this "hack" for strs for example.
What do you mean by that? Isn't having multiple classes the RPython
equivalent of this hack?
--
Regards,
Benjamin
More information about the pypy-dev
mailing list