I regularly use numba, and in general attain massive speedups for my code. Love it
Recently I wanted to try and learn more about numba features, e.g. jitting classes etc.
So as a small project to learn this, I tried to numbafy this small chess engine: github/thomasahle/sunfish
I have rewritten all functions to nopython mode, and it all compiles. Unfortunately, I do not see any speedup. Perhaps 1 % speedup, but no more.
I would very much like to understand why this code did not achieve more of a speedup.
Could the code uses unicode strings, and for these there will never be a speedup? Or are typed.Dicts generically slow?
My code is here: sunfish/nunfish.py at master · juliusbierk/sunfish · GitHub
I realize this is quite a long code, but there are only a few places where numba is used.
If anyone wants to run it, the run time should be compared to sunfish/sunfish.py at master · juliusbierk/sunfish · GitHub
I hope someone can give me some insight.