Emplace ContentSettingPatternSource to avoid unnecessary Value clone
Pushing back ContentSettingPatternSource by value results in a copy and assignment, causing an unnecessary clone of the contained Value. This results in a small (5ms) but avoidable cost at startup. Observed in the execution profiles at: https://uma.googleplex.com/p/chrome/callstacks?sid=e6d04c6a58a9d19cff68156c450453bf Change-Id: I8c4bf641414438ea3c365cab12642ea1b1a0062e Reviewed-on: https://chromium-review.googlesource.com/1033832 Commit-Queue: Mike Wittman <wittman@chromium.org> Reviewed-by:Jochen Eisinger <jochen@chromium.org> Cr-Commit-Position: refs/heads/master@{#554773}
Showing
Please register or sign in to comment