[graph] Another preallocation

This commit is contained in:
Behdad Esfahbod 2023-11-10 12:27:48 -07:00
parent 9c4d3c3c70
commit 330c32f902

View file

@ -1371,6 +1371,7 @@ struct graph_t
vertices_.tail ().distance = 0;
hb_priority_queue_t<int64_t> queue;
queue.alloc (count);
queue.insert (0, vertices_.length - 1);
hb_vector_t<bool> visited;