json-voorhees icon indicating copy to clipboard operation
json-voorhees copied to clipboard

value::insert is slow

Open tgockel opened this issue 4 years ago • 0 comments

Inserting into an object using val.insert({ std::move(key), std::move(val) }) is incredibly slow. While things should be moved everywhere, this does not appear to be happening. It is significantly faster to use val[std::move(key)] = std::move(val);

tgockel avatar Mar 06 '20 01:03 tgockel