mikepound / cubes

This code calculates all the variations of 3D polycubes for any size (time permitting!)
MIT License
165 stars 42 forks source link

slap jit from numba on it #2

Open 8bignic8 opened 1 year ago

8bignic8 commented 1 year ago

resource: https://numba.pydata.org/numba-doc/latest/user/5minguide.html from numba import njit

georgedorn commented 1 year ago

Some quick findings from some naive njit-slapping:

This may be worthwhile, but is easier said than done.

ETA: A minimal-effort implementation of this change is: https://github.com/georgedorn/cubes/tree/trial/numba This isn't particularly ready to go, but it does have the speedup from above and produces correct results. If somebody wants to take this an run with it, I suspect there are some deep optimizations to be done yet by doing the work to replace @jit with @njit.