When the hand-written destructor is removed, the compiler will
automatically create a proper one, with correct noexcept. This
allows std::vector<UniValue> to be resized without having to copy
all elements first, which makes JSON generation of a bitcoin block
(as in the benchmark "BlockToJsonVerbose") 25% faster on my machine.
When the hand-written destructor is removed, the compiler will automatically create a proper one, with correct
noexcept
. This allowsstd::vector<UniValue>
to be resized without having to copy all elements first, which makes JSON generation of a bitcoin block (as in the benchmark "BlockToJsonVerbose") 25% faster on my machine.Author: @martinus