Skip to content
Commit 0ec79d68 authored by Leandro Pereira's avatar Leandro Pereira Committed by Anas Nashif
Browse files

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: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent 1799cfdb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment