KDE/kdevplatform/shell
Friedrich W. H. Kossebau
kossebau at kde.org
Wed Aug 5 12:44:04 UTC 2009
Mercredi, le 5 août 2009, à 12:45, Andreas Pakulat a écrit:
> On 05.08.09 02:15:08, Friedrich W. H. Kossebau wrote:
> > SVN commit 1007055 by kossebau:
> >
> > changed: only need a QHash, not a QMap, for the KPart->QWidget storage
>
> Whats the advantage of using QHash instead of QMap here?
From http://doc.trolltech.com/4.5/qhash.html#details :
* QHash provides faster lookups than QMap
And IIRC a QHash needs less memory than a QMap, but that is not guaranteed.
So: QHash is lighter than a QMap, the extra properties of a QMap are not
needed here.
Cheers
Friedrich
--
Okteta - KDE 4 Hex Editor - http://utils.kde.org/projects/okteta
More information about the KDevelop-devel
mailing list