[pypy-dev] SmallTuples

Carl Friedrich Bolz cfbolz at gmx.de
Thu May 26 10:22:48 CEST 2011


On 05/26/2011 06:15 AM, Alex Gaynor wrote:
> Well, IMO the issue is you can end up with a ton of guard_class that are
> more precise than you need, plus you have to manually specialize for
> each length, whereas with the other approach you can just automatically
> apply it to all tuples.

There is a reason why they are disabled by default. It is an unanswered 
question how much this is a problem in practice. However, you cannot do 
what you described in your first mail in RPython currently: There are no 
variable-sized instances.

Carl Friedrich


More information about the pypy-dev mailing list