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

⚡ Optimize castling and en-passant moves Zobrist hashing #577

Merged
merged 15 commits into from Jan 4, 2024

Conversation

eduherminio
Copy link
Member

@eduherminio eduherminio commented Jan 3, 2024

  • Optimize castling and en-passant moves Zobrist hasing
  • Better align struct

See benchmarks inside, 90% improvement in castling hashing operation, variable one in en-passant one

Elo   | -1.52 +- 4.09 (95%)
SPRT  | 8.0+0.08s Threads=1 Hash=32MB
LLR   | 0.29 (-2.25, 2.89) [-5.00, 0.00]
Games | N: 16736 W: 5040 L: 5113 D: 6583
Penta | [647, 1932, 3241, 1943, 605]
https://openbench.lynx-chess.com/test/62/

@eduherminio eduherminio changed the title ⚡ Optimize castling and en-passant moves Zobrist hasing ⚡ Optimize castling and en-passant moves Zobrist hashing Jan 4, 2024
@eduherminio eduherminio enabled auto-merge (squash) January 4, 2024 02:36
@eduherminio eduherminio merged commit adba5ff into main Jan 4, 2024
21 checks passed
@eduherminio eduherminio deleted the perf/zobrist-hash branch January 4, 2024 02:50
eduherminio added a commit that referenced this pull request Jan 8, 2024
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.

None yet

1 participant