www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/22/07:10:30

Message-ID: <c=GB%a=_%p=Indigo_Active_Vi%l=CRIANLARICH-970422105631Z-408@crianlarich.Indigo>
From: Robert Humphris <r DOT humphris AT indigo-avs DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>,
"'Joseph B. Ottinger'"
<joeo AT notepad DOT com>
Subject: RE: Style AND speed in C++? How? Please, I need some radical ideas on this one!
Date: Tue, 22 Apr 1997 11:56:31 +0100
Encoding: 33 TEXT


>----------
>From: 	Joseph B. Ottinger[SMTP:joeo AT notepad DOT com]
>Sent: 	21 April 1997 16:15
>To: 	djgpp AT delorie DOT com
>Subject: 	Re: Style AND speed in C++?  How?  Please, I need some radical
>ideas on this one!
>
>Robert Humphris wrote:
>> 
>> How about using a parent class, and having all drivers for new cards
>> etc. as children of that class.
>
>Possibly a decent idea.
>
>The only problem is the use of virtual functions. I don't know
>specifically about DJGPP, but vtabs usually have a little bit of
>overhead associated with them. Why not use function pointers,
>initialised by the specific constructors? It's still not *quite* as fast
>a specific call, but there might be a way around that, too.

Yes that is quite possible, but doesn't the optimization take this into
account? Once
this is all compiled surely the actual pointer type difference ceases to
matter?

Tell me if I am wrong, as although ignorance may be bliss, its very
annoying when you
start propagating it!
>

Rob Humphris

- Raw text -


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