Don't copy the key in do_move

It will be overwritten anyway.

Also other little small touches that seem to increase
speed more then the whole enum Score patch series :-(

Optimization is really a black art.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2009-11-08 17:56:41 +01:00
parent ef6fca98a0
commit f35ddb04af
2 changed files with 10 additions and 7 deletions

View File

@@ -87,12 +87,13 @@ enum Phase {
/// must be passed as a parameter.
struct StateInfo {
Key key, pawnKey, materialKey;
Key pawnKey, materialKey;
int castleRights, rule50, pliesFromNull;
Square epSquare;
Score value;
Value npMaterial[2];
Key key;
PieceType capture;
Bitboard checkersBB;
StateInfo* previous;