Open tgockel opened 4 years ago
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);
val.insert({ std::move(key), std::move(val) })
val[std::move(key)] = std::move(val);
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 useval[std::move(key)] = std::move(val);