Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More efficient move calculation for Gaviota and Syzygy #1069

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

adbar
Copy link
Contributor

@adbar adbar commented Jan 6, 2025

Type of pull request:

  • Bug fix
  • Feature
  • Other

Description:

This PR simplifies the calculation of moves using Gaviota and Syzygy databases, I noticed inefficient lines like values computed twice. The external tests currently don't pass due to a network issue but the rest is fine. This code should run more efficiently and be easier to maintain.

Checklist:

  • I have read and followed the contribution guidelines.
  • I have added necessary documentation (if applicable).
  • The changes pass all existing tests.

@AttackingOrDefending
Copy link
Member

Also, can you update the branch to include the commits that are now in main, so that the tests won't fail?

@adbar
Copy link
Contributor Author

adbar commented Jan 8, 2025

@AttackingOrDefending I just removed the lines you mentioned and integrated the changes from the master branch. The speedup with pushing and popping is nice to hear!

@adbar adbar force-pushed the more_efficient_probing branch from 37eeafa to 89f030c Compare January 8, 2025 16:23
@adbar
Copy link
Contributor Author

adbar commented Jan 8, 2025

I rebased the branch and the tests now pass on my computer.

@MarkZH MarkZH merged commit 1da5ebf into lichess-bot-devs:master Jan 9, 2025
23 checks passed
@adbar adbar deleted the more_efficient_probing branch January 13, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants