Beymamat / cuckoochess

Automatically exported from code.google.com/p/cuckoochess
0 stars 0 forks source link

Transition Table memory print #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I just noticed you used such as "short" and "byte" in the TTEntry class.
In 64bit JVM a "long" takes as much space as a "byte" so for decreasing the TT 
size I would instead suggest using just two long values, ie "hash" and the 
others bit-mapped into a "long". Performanmce wise you're probably better off 
with two gigantic long[] arrays to avoid the object wrapper.

Also since your hashkey partly includes the index you may want to XOR something 
to the key for better uniqueness, for me I just XOR in the first bitboard bit. 

Other than that, an inspirational engine, I am also using Eclipse for mine.

--- Per ---

Original issue reported on code.google.com by pdi...@gmail.com on 6 Oct 2014 at 1:26