[computer-go] C++ parameter passing

Darren Cook darren at dcook.org
Thu Aug 10 01:40:50 PDT 2006


> If you are obsessed with speed, than make no classes at all. Good old
> C style is the fastest. Classes have an overhead. ...

C++ classes only have an overhead if they have virtual functions. Even
passing "this" as the hidden parameter tends to get optimized away
everywhere it is important.

Darren


More information about the computer-go mailing list