Author: Russell Reagan
Date: 22:23:59 01/17/04
I always assumed C# was compiled to bytecode, just like java, but then someone told me that it will (or can be) compiled into native machine code (i.e. "fast"). This prompted me to search around for some speed comparisons between C# and C++. At first the results seemed exciting. I saw a lot of benchmarks that showed C# to be only a hair slower than C++. Unfortunately, this wasn't exactly true. The pattern I saw was that for 'integer math', C# was just about as fast as C++ (within 1-2%). This made me think C# might be decent for a chess program. The other pattern that I saw was that while C# was strong at 'integer math', it was about 2x as slow as C++ in categories like 'arrays' and 'loops'. 'integer math', 'arrays', and 'loops' make up a very significant part of a chess engine. My gut instinct is that categories like 'arrays' and 'loops' will be slightly more important than 'integer math'. I'd like to hear from chess programmers about what you think of C#, and whether or not you would ever consider using it for a chess program.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.