[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Proposal to replace Value by QVariant (Re: koffice/kspread)
From: Thomas Zander <zander () kde ! org>
Date: 2007-10-17 9:51:39
Message-ID: 200710171151.42531.zander () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Wednesday 17 October 2007 11:12:54 Stefan Nikolaus wrote:
> KSpread::Value is used a lot and the last time I've checked it was more
> lightweight as QVariant.
Hmm, reading the source code I'm not so sure about that statement;
QVariant takes 32 bits plus one pointer (32 or 64 bits depending on
architecture).
32 bits as members, and the pointer in the union.
KSpread::Value takes one (d)pointer, 8 bits and another pointer.
the dpointer is QSharedDataPointer<Private> d;
8 bits as members, and the pointer in the union.
This means that the kspread one takes more memory then the qvariant one, upto
8 bytes more.
This is pretty low level, so I might be wrong as this is not my forte. On the
other hand, I have some faith in the hackers-capabilities of the Trolls ;)
--
Thomas Zander
["signature.asc" (application/pgp-signature)]
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic