Closed Akulen closed 4 months ago
Thank you for a PR! I'll check it in a few days.
Did the same modification to gardner_chess. The time gain is less impressive, but it still goes from 3-4s to <1s
Hi! I'm so sorry for late response 🙏 I locally confirmed it passes tests and actually improve speed! Great thanks! ❤️ CI failed in different part. I'll fix it in different PR. I'll merge this PR. Again thank you so much for your effort and sorry for late response 🙏
Importing
_src/chess_utils.py
currently takes between 10 and 15 seconds. It is mainly due to the fact that all pre-computations are made onjax.numpy
array, which are really slow. This PR reduces the import time to ~1s, by usingnumpy
array instead, and converting them tojax.numpy
array at the end.