DescriptionAvoid a string copy for every CommandLine::HasSwitch query
Windows performs a lower-case conversion of all strings passed to
CommandLine::HasSwitch. Other platforms require no such conversion,
however, currently they pay for an associated string copy on each query.
Why? Because compilers aren't as smart as they should be. Remove this
string copy for non-Windows platforms. A string copy saved is a string
copy earned.
BUG=405348
Committed: https://crrev.com/034cff8362b7fe30be88b9e344544be486bae74c
Cr-Commit-Position: refs/heads/master@{#308839}
Patch Set 1 #Patch Set 2 : Undo line removal #Messages
Total messages: 7 (2 generated)
|