[avar] Pre-alloc vector

This commit is contained in:
Behdad Esfahbod 2022-06-28 21:19:15 -06:00
parent 2a877b554a
commit d0e2ad9297
1 changed files with 1 additions and 0 deletions

View File

@ -188,6 +188,7 @@ struct avar
const auto &var_store = this+v2->varStore;
hb_vector_t<int> out;
out.alloc (coords_length);
for (unsigned i = 0; i < coords_length; i++)
{
int v = coords[i];