News for hackers. Stuff that matters.
Re:Python 3.11 vs 3.10 performance by otherme123 on Wednesday July 06, 2022 @02:37PM (#32005003)
Not true. Premature optimization is the root of all evil. You first write clean code, and then you profile and optimize. I refer you to the underlyings of dicts through the years (https://www.youtube.com/watch?v=npw4s1QTmPg) as an example of that optimization taking years of incremental changes. Once you see the current version it's easy to claim that you would have get to the current and best version in the first place, as obvious as it looks in hindsight.
Re:Python 3.11 vs 3.10 performance by gpderetta on Thursday July 07, 2022 @06:24AM (#32012144)
CPython and the Python design in general clearly show that writing clean code and optimizing later is significantly harder and take much more effort than keeping optimizations in mind from the start. It doesn't mean you need to write optimal code form day one, just that you need to be careful not to program yourself into a corner.