diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-04-15 19:12:34 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-04-15 20:16:33 (GMT) |
commit | 2c0f13ccfe750241eb7ddedf6412da380a146975 (patch) | |
tree | ff75556c7c677d10114b7d4f95f5a8fe65fa306c /tests/auto/linguist/lupdate | |
parent | 32aadef3a6621843fe065c3a5f2834a528a7d6fb (diff) | |
download | Qt-2c0f13ccfe750241eb7ddedf6412da380a146975.zip Qt-2c0f13ccfe750241eb7ddedf6412da380a146975.tar.gz Qt-2c0f13ccfe750241eb7ddedf6412da380a146975.tar.bz2 |
make HashString and HashStringList objects smaller
qHash(QString) has only 28 bits, so we can use the upper bits
for flagging whether the hash is valid.
size effect:
LP32: align(4, 4 + 4 + 1) = 12 vs. align(4, 4 + 4) = 8
LP64: align(8, 8 + 8 + 1) = 24 vs. align(8, 8 + 8) = 16
P64: align(8, 8 + 4 + 1) = 16 vs. align(8, 8 + 4) = 16
Diffstat (limited to 'tests/auto/linguist/lupdate')
0 files changed, 0 insertions, 0 deletions