From 4b8d8fbee4dc5fb96d298ea8ea8c5871b7ffbc26 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 26 Nov 2022 14:31:15 -0700 Subject: [PATCH] [ot-map] Micro-optimize for size --- src/hb-ot-map.hh | 6 +++--- src/hb-vector.hh | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-map.hh b/src/hb-ot-map.hh index 31a44c766..efc8cae96 100644 --- a/src/hb-ot-map.hh +++ b/src/hb-ot-map.hh @@ -92,11 +92,11 @@ struct hb_ot_map_t { hb_memset (this, 0, sizeof (*this)); - features.init (); + features.init0 (); for (unsigned int table_index = 0; table_index < 2; table_index++) { - lookups[table_index].init (); - stages[table_index].init (); + lookups[table_index].init0 (); + stages[table_index].init0 (); } } void fini () diff --git a/src/hb-vector.hh b/src/hb-vector.hh index e6bb7d22e..f55ec4643 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -84,6 +84,9 @@ struct hb_vector_t allocated = length = 0; arrayZ = nullptr; } + void init0 () + { + } void fini () {