

Looks like that will be a tough one to find. Have you tried putting up a request on any private trackers?
Looks like that will be a tough one to find. Have you tried putting up a request on any private trackers?
TLDR: 3.11 is twice as fast as 3.10 at doing global name lookups, so an old speedup hack of aliasing a global function locally isn’t needed.
For example, when calling len() in a loop, going l=len, and calling l() in the loop was faster in 3.10. In 3.11, moreso in 3.13, it’s almost a wash.
However, the author says this:
Accessing functions through a module [e.g. math.sin()] or a deep attribute chain can still carry overhead. Creating a local alias or using “from module import name” continues to be effective in those situations.
But when I look at the numbers, I would say 3.13 is pretty close to making it an unnecessary optimization in general. A little subjective on how you interpret the numbers.
Great info, but this was like trying to use a recipe and reading the author’s life story to get there.
Good thing he didn’t actually say it would be the next Windows doing any of those things. He didn’t even say it would be the OS:
“I think we will see computing become more ambient, more pervasive, continue to span form factors, and certainly become more multi-modal in the arc of time … I think experience diversity is the next space where we will continue to see voice becoming more important. Fundamentally, the concept that your computer can actually look at your screen and is context aware is going to become an important modality for us going forward.”
The important and scarier part is actually the last sentence, not anything from the article title.