hashmap: 如果新 size 小于 0x2000000 就不执行 resize
以解决 UCI go 后执行很慢的问题。
This commit is contained in:
parent
875bba4852
commit
40a3521607
|
@ -134,6 +134,12 @@ namespace CTSL //Concurrent Thread Safe Library
|
|||
|
||||
void resize(size_t size)
|
||||
{
|
||||
// TODO
|
||||
if (size < 0x2000000) {
|
||||
// New size is too small, do not resize
|
||||
return;
|
||||
}
|
||||
|
||||
hashSize = size;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue