Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reorganize structs to save a few bytes.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 24 Nov 2011 10:57:22 +0000 (11:57 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 28 Nov 2011 10:21:32 +0000 (11:21 +0100)
commit9e7d5cea1f09354b163b7749bdbd760eb3b65446
treedc15ddfc0f1ade1252f30452e3786e084b6ea586
parentf249ab2158bcbed49cf4db2d249cf5ffbc59b22e
Reorganize structs to save a few bytes.

The general idea is to move the fields, in order to group pointers
apart from integers.  Thus, the padding between fields is reduced,
and the size of the struct is reduced too.

It can save up to 32 bytes per node (host and/or process) on 64bits
architectures.
include/simix/context.h
src/msg/msg_private.h
src/surf/cpu.c
src/surf/maxmin_private.h
src/surf/workstation_ptask_L07.c
src/xbt/log.c
src/xbt/mallocator_private.h