On Nov 20, 2009, at 11:36 PM, Stefan Behnel wrote:
>
> I agree that the existing overhead is heavy enough to allow for an
> additional switch statement. We might also be able to generate both
> using a
> precompiler switch. The closure class could have a
>
> union {void* label, size_t yield_id} yield_target
>
> and the generated entry code could use either of them depending on
> the C
> compiler being used.
Well, I'd rather a macro than a union for type safety, but we could
certainly provide the optimization for compilers that support them.
- Robert
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev