]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device: remove holes in struct sd_device
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Dec 2018 11:29:28 +0000 (12:29 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Dec 2018 11:29:28 +0000 (12:29 +0100)
commit11c49e6df563e264e6094c4d521c3a2dc8e089b3
tree18d5fe1a4e4307e51903cfa5524c89ad2e708e49
parentdc5042c0a34faa2cb01206141f819141b25d55b0
sd-device: remove holes in struct sd_device

Normally, we don't care too much about what pahole reports. But this structure
could potentially be allocated for every device on the system, i.e. in a large
number of copies. 5 vs 7 cache lines is nice.

/* size: 400, cachelines: 7, members: 53 */
/* sum members: 330, holes: 12, sum holes: 70 */
/* last cacheline: 16 bytes */

/* size: 320, cachelines: 5, members: 53 */
/* bit holes: 1, sum bit holes: 6 bits */
/* bit_padding: 5 bits */
src/libsystemd/sd-device/device-internal.h