mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 08:51:07 +01:00
[subset/cff2] Speedup retaingids serialize
10% speedup in subset_glyphs/SourceHanSans-VF.otf/retaingids/10
This commit is contained in:
1 parent
b583978bdf
commit
e60ec9dcd3
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user