3 ms·
I dunno, I think it would be a big improvement that would be generally appreciated by a lot of people, even if it's an incremental optimization. There are lots
by sgtnoodle 5y ago
I dunno, I think it would be a big improvement that would be generally appreciated by a lot of people, even if it's an incremental optimization. There are lots of programs that are CPU bound but implemented in python for various good reasons. Doubling execution speed of those programs is like doubling single core CPU speed.
I wrote a simulation of sorts in python a few months ago, and a scenario runner to crank through as many simulations in parallel as possible. I didn't have any particular goal for runtime, but the faster the better. I spent a day replacing an iterative solver with a closed form solution, and that made it about 10x faster alone. I spent another 20 minutes turning classes into slots and got an easy 50% boost on top of that. I run that code for a couple minutes every few days on my 8 core laptop from 2020. On my 5 year old laptop with half the cores, the same task is more like 5 minutes. Doubling the speed of that code would be really nifty, in that it would make the 5 year old laptop take a couple minutes, and the modern laptop take less than a minute. I'd probably double the number of scenarios and get a more statistically significant result for what I'm simulating.
I also like to use Cura for 3D printer slicing. That's pretty much all written in python, and while it's gotten faster over time it's still pretty darn slow. If that doubled in speed, it would be an awesome upgrade.