-
Notifications
You must be signed in to change notification settings - Fork 305
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
compress table file #94
Conversation
This is very interesting, I will spend some time veryfying it and do some tests. |
If I underestand this correctly, this change mainly affects the loading speed,right? So it does not change the solving speed and accuracy? |
Yes. It speeds up the loading process and saves some memory. It doesn't change the cfr process. |
Okay I see. I will do some test first. Thanks very much for your effort. |
Hi, I read the code, is it possible to make the new bin file normal txt file? I think it would not hurt the performance much, and would be much easier for any other developer to reuse in other languages. |
To generate normal text file, just change the implementation of save() and load() function as you want. |
Aha, I see that. |
Merged to gui brach, after tests are complete will merge this to master. |
UPDATE: I have done some slight modification to the code and now it works prefectly on mac. |
The strength of 5 cards is determined by suit distribution and rank distribution. For the offsuit combination, we only need rank distribution. So we need two hash tables. One for suited combination, use cards mask as key. One for offsuit combination, use rank distribution mask as key. In this way, number of records reduced from 2598960 to 5148+6175=11323, from 376992 to 504+1278=1782, respectively.