Commit ae5b2643 authored by Max Kellermann's avatar Max Kellermann

tag/Builder: reserve room in std::vector in default constructor

This reduces resource waste for resizing the std::vector in most cases.
parent 02556ffc
...@@ -54,7 +54,9 @@ public: ...@@ -54,7 +54,9 @@ public:
/** /**
* Create an empty tag. * Create an empty tag.
*/ */
TagBuilder() = default; TagBuilder() noexcept {
items.reserve(64);
}
~TagBuilder() noexcept { ~TagBuilder() noexcept {
Clear(); Clear();
......
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