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

Speedup + Cleanup #250

Merged
merged 8 commits into from
Apr 20, 2020
Merged

Speedup + Cleanup #250

merged 8 commits into from
Apr 20, 2020

Conversation

TerjeKir
Copy link
Owner

A ~10% speedup of perft achieved by reducing branching, not updating hash while taking back moves (the final hash is retrieved from history array), and using ^ for both updates in MovePiece, allowing smarter code than using ^ for unsetting and | for setting.

A lot of cosmetic code refactoring.

ELO | 2.20 +- 3.36 (95%)
SPRT | 8.0+0.08s Threads=1 Hash=32MB
LLR | 2.99 (-2.94, 2.94) [-3.00, 1.00]
Games | N: 20368 W: 5138 L: 5009 D: 10221
http://chess.grantnet.us/test/5325/

@TerjeKir TerjeKir merged commit 23b43d7 into master Apr 20, 2020
@TerjeKir TerjeKir deleted the Cleanup branch April 20, 2020 10:59
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