News for hackers. Stuff that matters.
Re:Recent Performance Improvements in Function Calls in CPython by hoten on Thursday August 08, 2024 @07:13PM (#41197396)
Wow, very unfair. It should not be surprising that people writing Python might actually care about performance, even if it isn't so important that they must write their software in assembly.

The code wasn't the authors, and what's more it's just an example to talk about the bytecode. Everyone knows `min(some_list)` is faster and more Pythonic.

This is a very interesting article and probably exposed a few people to a few interesting Python internals.

Re:Recent Performance Improvements in Function Calls in CPython by otteromkram on Thursday August 08, 2024 @07:18PM (#41197427)
I was just referring to the sample code at the top. I should have clarified that and I apologize for the lack of clarity.

But, I would like to see the author use a for loop. I'm not why anyone would use a while loop of they know the constraints.