[subset/cff2] Speedup retaingids serialize

10% speedup in subset_glyphs/SourceHanSans-VF.otf/retaingids/10
This commit is contained in:
Behdad Esfahbod 2023-07-08 20:47:34 -06:00
parent b583978bdf
commit e60ec9dcd3

View file

@ -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;
}