|
|
Log in / Subscribe / Register

Exciting changes for python

Exciting changes for python

Posted Jul 16, 2025 22:21 UTC (Wed) by raven667 (subscriber, #5198)
In reply to: Exciting changes for python by Paf
Parent article: Following up on the Python JIT

> More often it’s much more about approach - *what* are you doing or perhaps could not be doing, not the fine details of how the machine is doing it.

I've found that to be very true, the first draft of code often lives for years if it works but can be very meandering as the initial developer figured how to solve the problem as they went, once you know what the output is supposed to be refactoring it can be as simple as replacing many loops through a data set one loop checking multiple conditions or a hash key lookup replacing a complex set of expressions, sometimes made easier by a simple reformatting of the input data to make it easier to look up. The end result is asking the computer to do much less work which is almost always faster and as you say, doesn't require deep microarchitectural knowledge, just a basic sense of proportion.


to post comments

Exciting changes for python

Posted Jul 17, 2025 8:29 UTC (Thu) by Wol (subscriber, #4433) [Link]

lol!

My second job, my boss came to me and said "we have this job. It's a six-week deadline. Can you do it?", and I responded "I'll give it a damn good try". I gave myself a five-week deadline, to give the rest of the team time to do the remaining work once the program spat out the results.

Four weeks into the job, the program ran. Estimated run time to completion? SIX WEEKS! Cue three days panic as I optimised the hell out of it - I finally handed the program over Wednesday morning week 5 (and went sick :-). The rest of the team made the deadline.

And I basically did pretty much exactly what you said ...

Cheers,
Wol


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds