D14353: Improve alignment of types
Frederik Gladhorn
noreply at phabricator.kde.org
Thu Jul 26 13:16:14 BST 2018
gladhorn added a comment.
In D14353#298417 <https://phabricator.kde.org/D14353#298417>, @romangg wrote:
> Why push id down? It should stay at the top imo (or alphabetically). Rest is fine.
Because of padding. On 64 bit when int is usually 4 bit, there will be a hole of 4 bits in the class, moving it down allows the compiler to pack the class tighter.
REPOSITORY
R110 KScreen Library
REVISION DETAIL
https://phabricator.kde.org/D14353
To: gladhorn, #plasma, romangg
Cc: romangg, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180726/c108927c/attachment.html>
More information about the Plasma-devel
mailing list