-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Simplify indexing. #6391
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
Simplify indexing. #6391
Conversation
|
clang-format 20 needs to be run on this PR. (execution 19358797923 / attempt 1) |
|
Oops. The bench was pre-rebase. I edited the bench. Can you please run the checks again? |
|
You need to edit the bench in the commit message, not the pr description. If you then push, the CI should rerun by itself |
bench: 2403242
b8dcb3f to
da43974
Compare
|
The fishtest results look like they could actually be gaining Elo... any ideas as to the mechanism? Maybe prevents bad aliasing with underpromotions? (I tried ignoring underpromotions in corrhist before and it didn't work.) Or maybe just fewer pawn key collisions |
|
How much extra memory is this using per thread? If it's a lot do we want to accept non regression bounds? |
|
|
|
Separately, now that memory pressure is greatly reduced on single-threaded fishtest, I'm wondering whether a comprehensive check of the various history sizes could be useful... |
The unused history entries are almost free. They don't get loaded into the cache. The raw main history had above 1.5 LLR at STC gainer bound. I stopped that one because this patch would do what it did anyway and qualifies as a simplification. The bigger correction history size was slightly positive, so could be green or yellow. I think this actually gains, but I choose to pass as a simplification because I think the reduced logic qualifies it as such. |
See if the ones indexed by move from_to() were better previously. bench: 3012156
bench: 2403242
Removes 1 function (from_to) from the Move type, change them to simpler raw. Remove the "and" use in the correction history structure calculation. Adjust the indexing.
Passed simplification STC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 42880 W: 11327 L: 11113 D: 20440
Ptnml(0-2): 161, 4852, 11212, 5042, 173
https://tests.stockfishchess.org/tests/view/690593b8ea4b268f1fac1e8a
Passed simplification LTC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 43560 W: 11276 L: 11079 D: 21205
Ptnml(0-2): 17, 4679, 12197, 4864, 23
https://tests.stockfishchess.org/tests/view/6906f819ea4b268f1fac216b
Also probably gaining though the patches were run at a simplification bound.