]> git.ipfire.org Git - thirdparty/asterisk.git/commit
astobj2: Reduce memory overhead.
authorCorey Farrell <git@cfware.com>
Thu, 27 Sep 2018 09:51:43 +0000 (05:51 -0400)
committerCorey Farrell <git@cfware.com>
Thu, 27 Sep 2018 23:45:55 +0000 (19:45 -0400)
commit4afcd37d157713806f73b168cd7a538dd2980436
treedd60d886697538c5bf0e27b71cb9c1432a198772
parent34c2baf88feb0c198e0b3292af8142751aa8847d
astobj2: Reduce memory overhead.

Reduce options to 2-bit field, magic to 30 bit field.  Move ref_counter
next to options the fields will pack.

This reduces memory overhead for every ao2 object by 8 bytes on x86_64.

Change-Id: Idc1baabb35ec3b3d8de463c4fa3011eaf7fcafb5
main/astobj2.c