[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: API problems (Was: future versions)
From:       "Friedrich W. H.  Kossebau" <Friedrich.W.H () Kossebau ! de>
Date:       2004-02-07 11:18:38
Message-ID: 200402071218.39122.Friedrich.W.H () Kossebau ! de
[Download RAW message or body]

Am Samstag, 7. Februar 2004 02:54 schrieb Marc Mutz:
> The accumulated mess in kdelibs/interfaces. Yes, I'm all for interfaces
> but requiring a text editor to implement - say - a dozen "interfaces"
> is quite heavy, esp. since they each require virtual inheritance, which
> is surprisingly memory intensive.

Teach me please: What do you mean by memory intensive? I am not an expert but 
I guess that an entry in the virtual table is still sizeof(void*) and there 
is only one table (collection)  per class, right? So a table can be expected 
to be less than or around one kB. In ones' code one needs a dozen pointer 
variables for all the interfaces and then there is the overhead for each 
function call. 

But is this really memory intensive? Please, can you correct me or give some 
numbers?

Friedrich
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic