News for hackers. Stuff that matters.
Re:Optimizations which made Python 3.6 faster than Python 3.... by vosper on Tuesday June 06, 2017 @01:31AM (#14494973)
Huh, I never thought about that before. Importing inside a function is very frowned-upon AFAIK, but now I wonder what kind of performance improvements you might get from importing things only when you need them.

I wonder if it would be possible to automatically rewrite a script to do that.

There are no comments on this comment yet.