commit | 0ec79d6853b7fcc77c83ad5128b8170dda044032 | [log] [tgz] |
---|---|---|
author | Leandro Pereira <leandro.pereira@intel.com> | Wed Apr 18 18:14:22 2018 -0700 |
committer | Anas Nashif <nashif@linux.intel.com> | Tue May 01 15:44:09 2018 -0400 |
tree | 8e0957eb054fe593d9c9a1a9de391083fa61eeaf | |
parent | 1799cfdb2f199a3f8a40327de73d14c90db98c63 [diff] |
lib: json: Efficiently pack field name, offset, alignment, type This trades a little bit over 40 bytes (on x86) of text for a lot of savings in rodata. This is accomplished by using bitfields to pack the field name length, offset, alignment, and the type tag into a single 32-bit unsigned integer instead of scattering this information into four different integers. Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>