Repack structs with more than one padding hole
authorThiago Macieira <thiago.macieira@intel.com>
Mon, 30 Sep 2013 01:07:23 +0000 (18:07 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 3 Dec 2013 20:53:38 +0000 (21:53 +0100)
commit9fc0965d1930b32277dd3845cb94b650aec67ac8
tree07e94df723e07c6eb37dd04901781450599b8bf3
parent28d77c24c2deec2eee8c735b299f0da792d75c9f
Repack structs with more than one padding hole

Sizes gained (measured on 64-bit systems)
BezierEase: shrunk 8 bytes
QRegExpCharClass: shrunk 8 bytes
QRegularExpressionPrivate: shrunk 8 bytes
QTimeLinePrivate: shrunk 8 bytes
QUtcTimeZonePrivate: shrunk 8 bytes
QTextStreamPrivate: shrunk 8 bytes
QDirPrivate: shrunk 8 bytes
QFileDevicePrivate: shrunk 8 bytes

Not done:
QRegExpEngine: 18 bytes in 6 holes (you deserve high memory usage if
you're still using QRegExp)
QTextBoundaryFinder: 8 bytes in 2 holes (public class)
QIODevicePrivate: 6 bytes in 2 holes, but there's no gain in packing
QProcessPrivate: too complex and my copy is modified
QThreadData: awaiting change from Marc

Change-Id: I2a388b5ce17dec0dafcef18ed2e80d0379aa7d1e
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/io/qdir.cpp
src/corelib/io/qdir_p.h
src/corelib/io/qfiledevice.cpp
src/corelib/io/qfiledevice_p.h
src/corelib/io/qtextstream_p.h
src/corelib/tools/qeasingcurve.cpp
src/corelib/tools/qregexp.cpp
src/corelib/tools/qregularexpression.cpp
src/corelib/tools/qtimeline.cpp
src/corelib/tools/qtimezoneprivate.cpp
src/corelib/tools/qtimezoneprivate_p.h