[vector] Add remove_unordered
Saves 5% in NotoNastaliq/1000 subset benchmark.
diff --git a/src/graph/graph.hh b/src/graph/graph.hh
index 06e8478..c6f0884 100644
--- a/src/graph/graph.hh
+++ b/src/graph/graph.hh
@@ -132,7 +132,7 @@
for (unsigned i = 0; i < parents.length; i++)
{
if (parents[i] != parent_index) continue;
- parents.remove (i);
+ parents.remove_unordered (i);
break;
}
}
@@ -148,7 +148,7 @@
if ((obj.head + link.position) != offset)
continue;
- obj.real_links.remove (i);
+ obj.real_links.remove_unordered (i);
return;
}
}