From e60ec9dcd3b0f94d13b8baf7ba12cd6cf0626064 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 8 Jul 2023 20:47:34 -0600 Subject: [PATCH] [subset/cff2] Speedup retaingids serialize 10% speedup in subset_glyphs/SourceHanSans-VF.otf/retaingids/10 --- src/hb-ot-cff-common.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-cff-common.hh b/src/hb-ot-cff-common.hh index a2f90c8f5..923a32b26 100644 --- a/src/hb-ot-cff-common.hh +++ b/src/hb-ot-cff-common.hh @@ -94,10 +94,10 @@ struct CFFIndex for (const auto &_ : +it) { unsigned len = _.length; + if (!len) + continue; if (len <= 1) { - if (!len) - continue; *ret++ = *_.arrayZ; continue; }