forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[url] Avoid scanning for whitespace twice during ResolveRelative
For calls to url::ResolveRelative, if the input is not in fact relative, we call RemoveURLWhitespace twice on the same buffer. This is not necessary. On a test of loading 100 identical ~1mb data URL images, this patch speeds up the renderer by ~8% on Linux. BUG=657978 Review-Url: https://codereview.chromium.org/2540893004 Cr-Commit-Position: refs/heads/master@{#435604}
- Loading branch information
1 parent
3bfc9e3
commit c645372
Showing
2 changed files
with
27 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters