[subset-cff] Micro-optimize copy_str

pull/3895/head
Behdad Esfahbod 2 years ago
parent e333223f26
commit d2f3cde7ef
  1. 4
      src/hb-subset-cff-common.hh

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

Loading…
Cancel
Save