Message 410024 - Python tracker

Message410024

Author gvanrossum
Recipients FFY00, christian.heimes, eric.snow, gvanrossum, kumaraditya, methane
Date 2022-01-07.20:05:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641585959.92.0.0604122996562.issue45661@roundup.psfhosted.org>
In-reply-to
Content
Deep-freezing is definitely not a miracle cure. We should continue to trim or delay unneeded imports (like Christian just did for setuptools' _distutils_hack).

What *would* be a miracle cure would be if we could deep-freeze the module contents after it has *executed*. But that is much harder in general, since two executions (even on the same platform) could result in different module contents (e.g. conditionally defining something based on environment contents).

Instagram's Cinder has something that works for this, strict modules (https://github.com/facebookincubator/cinder#strict-modules). It is a complex system! But if we could do this it could really speed up a lot of imports tremendously. (Though still at the cost of binary size increase.)
History
Date User Action Args
2022-01-07 20:05:59gvanrossumsetrecipients: + gvanrossum, christian.heimes, methane, eric.snow, FFY00, kumaraditya
2022-01-07 20:05:59gvanrossumsetmessageid: <1641585959.92.0.0604122996562.issue45661@roundup.psfhosted.org>
2022-01-07 20:05:59gvanrossumlinkissue45661 messages
2022-01-07 20:05:59gvanrossumcreate