Commit fed68cae authored by Kenton Varda's avatar Kenton Varda

Optimize Vector::clear().

parent 5d077a97
......@@ -116,9 +116,7 @@ public:
}
inline void clear() {
while (builder.size() > 0) {
builder.removeLast();
}
builder.resize(0);
}
inline void truncate(size_t size) {
......
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