[subset-cff] Micro-optimize encode_str

This commit is contained in:
Behdad Esfahbod 2022-11-25 13:21:35 -07:00
parent 3c4a610b59
commit 1d474194f0
1 changed files with 2 additions and 1 deletions

View File

@ -881,9 +881,10 @@ struct subr_subsetter_t
if (str.prefix_op () != OpCode_Invalid)
encoder.encode_op (str.prefix_op ());
}
auto &arr = str.values.arrayZ;
for (unsigned int i = 0; i < count; i++)
{
const parsed_cs_op_t &opstr = str.values.arrayZ[i];
const parsed_cs_op_t &opstr = arr[i];
if (!opstr.for_drop () && !opstr.for_skip ())
{
switch (opstr.op)