[Pyrex] Subclassing a non-GC type
Robert Bradshaw
robertwb at math.washington.edu
Thu Jan 31 01:31:59 CET 2008
On Jan 30, 2008, at 3:48 PM, Greg Ewing wrote:
> Robert Bradshaw wrote:
>> if A and D are in the same
>> module, it will call by function name (rather than the pointer in the
>> type object) which facilitates inlining by the C compiler (as these
>> are all tiny functions).
>
> I'm not convinced that such inlining would produce enough
> of a performance gain to be worth the extra complexity in
> the Pyrex compiler. The last thing it wants at the moment
> is any more complexity than it really needs.
For ephemeral objects deep down in the inheritance tree (for example,
our integers in Sage) it does, but you're right that for many cases
there would be virtually no gain.
- Robert
More information about the Pyrex
mailing list