]> git.kaiwu.me - haproxy.git/commit
DIET/MINOR: obj: pack the obj_type enum to 8 bits
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2013 20:08:11 +0000 (21:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 15:06:08 +0000 (16:06 +0100)
commit939478d04dcb1ba27875a45a5ea2246707fe1601
tree7fc7e381c289ae83567c256dad1136bed6c5f11a
parent284ddbfd3b45cc162ad98b68595c5569a2fc2ec2
DIET/MINOR: obj: pack the obj_type enum to 8 bits

Taking 32-bit in each struct just to store an obj_type is a waste
considering the very small amount of possible values. Let's force
it to be as small as possible (1 char) and we'll be able to move
some structs around to save some space.
include/types/obj_type.h