HASH: 哈希结点个数由128M下调到64M

提速6%,并且无冲突出现。
实测 64M/32M 相差不大,16M会出现冲突影响计算结果。
This commit is contained in:
CalciteM Team 2019-07-20 20:34:53 +08:00
parent 28096b97c2
commit 19d23eb7b8
1 changed files with 1 additions and 1 deletions
NineChess/src

View File

@ -18,7 +18,7 @@
using namespace CTSL;
#ifdef HASH_MAP_ENABLE
static constexpr int hashsize = 0x8000000; // 128M
static constexpr int hashsize = 0x4000000; // 8-128M:102s, 4-64M:93s 2-32M:91s 1-16M: 冲突
HashMap<uint64_t, NineChessAi_ab::HashValue> hashmap(hashsize);
#endif // HASH_MAP_ENABLE