[cff] Adjust pre-allocation

This better matches actual usage, given that ops are one or two
bytes, and vector also allocates 50% extra.
This commit is contained in:
Behdad Esfahbod 2022-11-21 18:01:50 -07:00
parent bab8ec58b0
commit c6279224db
1 changed files with 1 additions and 1 deletions

View File

@ -565,7 +565,7 @@ struct subr_subsetter_t
ENV env (str, acc, fd);
cs_interpreter_t<ENV, OPSET, subr_subset_param_t> interp (env);
parsed_charstrings[i].alloc (str.length);
parsed_charstrings[i].alloc (str.length / 2);
subr_subset_param_t param (&parsed_charstrings[i],
&parsed_global_subrs,
&parsed_local_subrs[fd],