mirror of https://git.suyu.dev/suyu/suyu
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).merge-requests/60/head
parent
474ec2ee5f
commit
6279c2dcf4
Loading…
Reference in New Issue