mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
[graph] Another preallocation
This commit is contained in:
1 parent
9c4d3c3c70
commit
330c32f902
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user