[subset/cff2] Speedup retaingids serialize

10% speedup in subset_glyphs/SourceHanSans-VF.otf/retaingids/10
This commit is contained in:
Behdad Esfahbod committed 2023-07-08 20:48:18 -06:00
1 parent b583978bdf
commit e60ec9dcd3
1 file changed
+2 -2
+2 -2
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;
}