From e077ca893eadd993bd52bb902c6f43e488f4a509 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 4 Jun 2023 16:23:36 -0600 Subject: [PATCH] [subset/cff] Micro-optimize --- src/hb-subset-cff1.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/hb-subset-cff1.cc b/src/hb-subset-cff1.cc index c035a11b3..610f8719c 100644 --- a/src/hb-subset-cff1.cc +++ b/src/hb-subset-cff1.cc @@ -420,9 +420,10 @@ struct cff_subset_plan { for (glyph = 1; glyph < num_glyphs; glyph++) { hb_codepoint_t old_glyph; - if (glyph == it->first) + auto &_ = it[0]; + if (glyph == _.first) { - old_glyph = it->second; + old_glyph = _.second; it++; } else @@ -500,9 +501,10 @@ struct cff_subset_plan { for (glyph = 1; glyph < num_glyphs; glyph++) { hb_codepoint_t old_glyph; - if (glyph == it->first) + auto &_ = it[0]; + if (glyph == _.first) { - old_glyph = it->second; + old_glyph = _.second; it++; } else