[serialize] Only pack main object if there are other objects
authorBehdad Esfahbod <behdad@behdad.org>
Sun, 31 Mar 2019 02:05:51 +0000 (19:05 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Sun, 31 Mar 2019 02:05:51 +0000 (19:05 -0700)
commitf254f45a1e6b1de6d83c97033773d20408772763
tree261ffb4c5f076e8ec203a4471d250930ba42713c
parent946d446f9b795f657d56ca443edbc0b77d660a50
[serialize] Only pack main object if there are other objects

Avoids a memmove for tables that don't use the object packing mechanism.
src/hb-serialize.hh