[subset/cff1] Speed up plan_subset_charset

25% speedup in --benchmark_filter=subset_glyphs/SourceSansPro'.*retaingids/10
pull/4270/head
Behdad Esfahbod 1 year ago
parent fd13aa9eff
commit 9e80f6b1b6
  1. 2
      src/hb-subset-cff1.cc

@ -501,6 +501,8 @@ struct cff_subset_plan {
if (it->first == 0) it++;
auto _ = *it;
bool not_is_cid = !acc.is_CID ();
if (not_is_cid)
sidmap.resize (num_glyphs);
for (glyph = 1; glyph < num_glyphs; glyph++)
{
hb_codepoint_t old_glyph;

Loading…
Cancel
Save