delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/02/14:39:55

To: eyal DOT ben-david AT aks DOT com
Cc: djgpp AT delorie DOT com
Subject: Re: Quake vs. Demos
Message-ID: <19970602.143604.7119.3.fwec@juno.com>
References: <422564AA DOT 004D330F DOT 00 AT aks DOT com>
From: fwec AT juno DOT com (Mark T Logan)
Date: Mon, 02 Jun 1997 14:35:45 EDT

On Mon, 2 Jun 1997 16:29:29 +0200 eyal DOT ben-david AT aks DOT com writes:
>I disagree on that also. Sometimes good OO design results in an even 
>faster
>code.
>Think about  virtual function calls vs chains of "if-else" or "switch"
>statements.

Not necessarily.  It doesn't matter how concise your source code is.  If
the
compiler implements virtual functions with a lot of conditional jumps,
then it
doesn't matter what you use.  Of course, I don't know how compilers
implement
virtual functions, so it may be that they are faster.  Anyone care to
comment?


||                   fwec AT juno DOT com
||  "If you think there should be more of something, do it randomly. 
Kindness
||   can be just as contagious as violence and hate."
||
||                                  - origin unknown

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019