[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: c++ question: code duplication across classes
From: Benoit Jacob <jacob () math ! jussieu ! fr>
Date: 2006-09-20 8:23:44
Message-ID: Pine.LNX.4.64.0609201020030.7064 () galois2 ! math ! jussieu ! fr
[Download RAW message or body]
Wait, I misread your reply :)
> For a simple class,
> sizeof(vtable) = k + sizeof (void (*)()) * N
so, what is the answer to my question: does that inflate the sizeof of my
class? If I construct 1000 objects of this class, will the vtable be
replicated 1000 times ? (I warned you it was a stupid question...)
For the speed overhead, thanks, I'll look for docs to see if this is still
an issue.
Benoit
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic