Commit 6279c2dc authored by Lioncash's avatar Lioncash
Browse files

param_package: Use std::unordered_map's insert_or_assign instead of map indexing

This avoids a redundant std::string construction if a key doesn't exist
in the map already.

e.g.

data[key] requires constructing a new default instance of the value in
the map (but this is wasteful, since we're already setting something
into the map over top of it).
parent 474ec2ee
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment