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:
parent
02556ffce9
commit
ae5b2643da
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue