Computer Chess Club Archives




Subject: Java vs. C++ Chess Programming Question

Author: Sam Gross

Date: 17:28:25 05/15/01

I am writing a bitboard-based chess engine in Java, and a preliminary test of
the search function (plain alpha-beta search, no transposition table, history,
null move, or anything else) was pretty disappointing.  I am getting about 10%
of the nps crafty gets on the same machine, even though my evaluation function
is just the material imbalance.  My question is, how much of this is due to
differences in speed between Java and C++, and how much is due to lack of a
transposition table (or other factors)?  Also, I wonder if my program may be
stretching Java's automatic garbage collectors.  A new copy of my board is made
for every node, and each node creates many instances of my move object, which I
imagine would use up a lot of time.  Any help would be appreciated.

This page took 0.05 seconds to execute

Last modified: Thu, 07 Jul 11 08:48:38 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.