[avar] Pre-alloc vector
This commit is contained in:
parent
2a877b554a
commit
d0e2ad9297
|
@ -188,6 +188,7 @@ struct avar
|
||||||
const auto &var_store = this+v2->varStore;
|
const auto &var_store = this+v2->varStore;
|
||||||
|
|
||||||
hb_vector_t<int> out;
|
hb_vector_t<int> out;
|
||||||
|
out.alloc (coords_length);
|
||||||
for (unsigned i = 0; i < coords_length; i++)
|
for (unsigned i = 0; i < coords_length; i++)
|
||||||
{
|
{
|
||||||
int v = coords[i];
|
int v = coords[i];
|
||||||
|
|
Loading…
Reference in New Issue