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
1 changed files with 3 additions and 1 deletions

View File

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