Optimize KURL protocols
This patch optimizes KURL::protocol and KURL::protocolIs by keeping an AtomicString m_protocol on KURL. This reduces string allocations throughout the code using KURL::protocol(). This also fixes an inconsistency with KURL::protocolIs that will return true for invalid URLs. BUG=348655 Review-Url: https://codereview.chromium.org/2463703002 Cr-Commit-Position: refs/heads/master@{#438197}
Showing
Please register or sign in to comment