[graph] Micro-optimize

This commit is contained in:
Behdad Esfahbod committed 2023-07-14 13:08:19 -06:00
1 parent de1237fbf2
commit 10b776b0c3
1 file changed
+2 -2
+2 -2
View File
@@ -749,10 +749,10 @@ struct graph_t
{
for (const auto& link : vertices_[node_idx].obj.all_links ())
{
const uint32_t *v;
uint32_t *v;
if (subgraph.has (link.objidx, &v))
{
subgraph.set (link.objidx, *v + 1);
(*v)++;
continue;
}
subgraph.set (link.objidx, 1);