mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 06:25:03 +00:00
[graph] Micro-optimize
This commit is contained in:
parent
548230e45e
commit
326d319f93
1 changed files with 2 additions and 6 deletions
|
@ -1252,12 +1252,8 @@ struct graph_t
|
|||
// (such as a fibonacci queue) with a fast decrease priority.
|
||||
unsigned count = vertices_.length;
|
||||
for (unsigned i = 0; i < count; i++)
|
||||
{
|
||||
if (i == vertices_.length - 1)
|
||||
vertices_.arrayZ[i].distance = 0;
|
||||
else
|
||||
vertices_.arrayZ[i].distance = hb_int_max (int64_t);
|
||||
}
|
||||
vertices_.arrayZ[i].distance = hb_int_max (int64_t);
|
||||
vertices_.tail ().distance = 0;
|
||||
|
||||
hb_priority_queue_t queue;
|
||||
queue.insert (0, vertices_.length - 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue