[Pyrex] C-API implementation in Pyrex 0.9.6

Stefan Behnel stefan_ml at behnel.de
Tue Oct 16 12:31:20 CEST 2007


Greg Ewing wrote:
> Stefan Behnel wrote:
>> There already is quite a bit of overhead anyway for extension types,
>> just look
>> at the traditionally close-to-empty special method descriptors.
> 
> But they only occur once per type. A pointer to a struct of
> private fields would take up space in every *instance*.

Ah, sure, sorry. Still, if this gets important, we can optimise this away for
types that are not public themselves and not subclassed by public types, which
is again module-internal knowledge that Pyrex has.

Stefan




More information about the Pyrex mailing list