6/23/2026 at 3:41:07 PM
> Here I should note that Python is not the best choice for CPU-bound software. I want to take the opportunity to learn Zig.For optimizing CPU-bound operations in Python, there’s some low hanging fruit with numba. I would recommend this as a 5-minute solution to you limiting your algorithm because regular Python is too slow. I regularly tell people that if their Python program is slow enough to take several minutes, you could probably learn numba before it finishes.
by gsquaredxc
6/23/2026 at 9:24:52 PM
For exhaustive searches, a library like or-tools or clingo can speed things up a lot. But first you have to figure out how to express your problem declaratively.by EliasWatson
6/23/2026 at 5:16:50 PM
PyPy is an option too.by sltkr
6/23/2026 at 4:25:02 PM
Nice adviceby davidkwast