Commit 9c5e66b4 authored by Davis King's avatar Davis King

Optimized this code a little.

parent 1570899c
......@@ -240,8 +240,8 @@ namespace dlib
while (orphans.size() > 0)
{
const unsigned long p = orphans.front();
orphans.pop_front();
const unsigned long p = orphans.back();
orphans.pop_back();
const unsigned char label_p = g.get_label(p);
......@@ -560,7 +560,7 @@ namespace dlib
mutable std::vector<unsigned long> parent;
mutable std::deque<unsigned long> active;
mutable std::deque<unsigned long> orphans;
mutable std::vector<unsigned long> orphans;
};
// ----------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment