abulmo/MPerft

Move project to C++

Gigantua opened this issue · 3 comments

Your code looks clean - but the usage of color c => board->color[c] really hinders performance.

Think about switching to C++ and a color to a template paramter like
template
void Move(){
}

To have pawn lookups for free!
Greetings.

The goal of mperft was just to make a perft program based on bitboard that is both simpler and faster than qperft by H.G. Muller. As I meet these goals, a port to C++ is very unlikely, at least in a near future.

This is slower than Qperft? At least on my machine. About 30%

On mine it is 2.3 times faster. You probably did not compile it rightly.