mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
[subset-cff] Micro-optimize copy_str
This commit is contained in:
1 parent
e333223f26
commit
d2f3cde7ef
1 file changed
+2
-2
@@ -119,9 +119,9 @@ struct str_encoder_t
|
||||
return;
|
||||
|
||||
/* Faster than hb_memcpy for small strings. */
|
||||
auto &arr = buff.arrayZ;
|
||||
auto arr = buff.arrayZ + offset;
|
||||
for (unsigned i = 0; i < length; i++)
|
||||
arr[i + offset] = str[i];
|
||||
arr[i] = str[i];
|
||||
//hb_memcpy (buff.arrayZ + offset, str, length);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user