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

This reduces resource waste for resizing the std::vector in most
cases.
This commit is contained in:
Max Kellermann 2020-04-24 16:08:20 +02:00
parent 02556ffce9
commit ae5b2643da

View File

@ -54,7 +54,9 @@ public:
/**
* Create an empty tag.
*/
TagBuilder() = default;
TagBuilder() noexcept {
items.reserve(64);
}
~TagBuilder() noexcept {
Clear();