mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 01:00:37 +00:00
[graph] Another preallocation
This commit is contained in:
parent
9c4d3c3c70
commit
330c32f902
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue