[subset-cff] Micro-optimize copy_str some more

This commit is contained in:
Behdad Esfahbod 2022-11-25 13:16:30 -07:00
parent 535aadb309
commit 3c4a610b59
1 changed files with 2 additions and 1 deletions

View File

@ -119,8 +119,9 @@ struct str_encoder_t
return;
/* Faster than hb_memcpy for small strings. */
auto &arr = buff.arrayZ;
for (unsigned i = 0; i < length; i++)
buff.arrayZ[i + offset] = str[i];
arr[i + offset] = str[i];
//hb_memcpy (buff.arrayZ + offset, str, length);
}