[Python-ideas] Module lifecycle: simple alternative to PEP 3121/PEP 489

Stefan Krah stefan at bytereef.org
Fri Apr 15 05:22:34 EDT 2016

Nikita Nemkin <nikita at ...> writes:
> I mentioned the way to avoid state access overhead in my first post.
> It's independent of module loading mechanism:

It's great to see people discussing this. I must clarify the 20%
slowdown figure that I posted earlier:

The slowdown was due to changing the static variables to module state
*and* the static types to heap types.  It was recommended at the time
to do both or nothing.

I haven't measured the module state impact in isolation.

Stefan Krah

More information about the Python-ideas mailing list