Chromium Code Reviews
DescriptionFast path for google_util::IsValidHostName
IsValidHostName takes a host and tries to match it with
[www.]<domain_in_lower_case>.<TLD>
However, finding valid TLDs entails searching a big DAFSA. This patch
uses a fast path to fail fast if <domain_in_lower_case> is not found in
the input host.
This function was seen in profiles on the IO thread in
variations::AppendVariationHeaders.
BUG=664174
Committed: https://crrev.com/a628b8fc2a3e19ce72cef9cd0802ad79a892f7f6
Cr-Commit-Position: refs/heads/master@{#431995}
Patch Set 1 #
Messages
Total messages: 12 (7 generated)
|
|||||||||||||||||||