Closed martinus closed 5 years ago
@martinus Very interesting - taking a look - why closed?
I actually wanted to push this to the bitcoin-core/univalue fork, so I've closed it here and pushed it there. It's still a valid patch I guess
@martinus This is the upstream univalue repo
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.