[subset/cff2] Speedup retaingids serialize

10% speedup in subset_glyphs/SourceHanSans-VF.otf/retaingids/10
pull/4317/head
Behdad Esfahbod 2 years ago
parent b583978bdf
commit e60ec9dcd3
  1. 4
      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;
}

Loading…
Cancel
Save