Author: Bruce Moreland
Date: 16:21:20 07/02/99
Go up one level in this thread
On July 02, 1999 at 18:17:23, Dan Andersson wrote: >The speed issue is a factor only if your program is strictly OO. The usual >method of member function calls (Methods) in C++ tend to be VTables and those >incur a bad performance hit especially on the x86 architecture. If your program >only uses objects to encapsulate data and some functionality but otherwise is >imperative (non Object oriented, ie C with streams et al) the performance hit is >neglible. IMO, if the idea is to make an object-oriented programming effort, >either ignore the performance hit or consider switching to SmallEiffel (an ADT >object-oriented language) or something similar that actually encourages >object-oriented design. You can write a chess program without doing any virtual functions, which is what I think you are talking about when you refer to vtables. You can do OO without doing virtual functions, can't you? bruce
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.