| Summary: | CachedResourceLoader::allCachedSVGImages() reparses resource URLs unnecessarily | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||
| Component: | WebCore Misc. | Assignee: | Chris Dumez <cdumez> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | achristensen, darin, ews-watchlist, ggaren, japhet, jbedard, webkit-bug-importer, youennf | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Chris Dumez
2022-02-21 15:52:13 PST
Created attachment 452790 [details]
Patch
Stopped https://ews-build.webkit.org/#/builders/70/builds/974, the 3 failures seen are already known. (In reply to Jonathan Bedard from comment #2) > Stopped https://ews-build.webkit.org/#/builders/70/builds/974, the 3 > failures seen are already known. Oh, thank you for letting me know! My patch touches SVG and the 3 failures were on SVG tests so I was about to investigate. Comment on attachment 452790 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=452790&action=review > Source/WebCore/ChangeLog:10 > + Store URLs in the HashMaps instead of Strings since we have URLs initially and we > + need URLs eventually. This avoids having to re-parse the URL unnecessarily, which > + is fairly expensive. It also makes the maps bigger; URLs share the strings, but the parsed offsets are separate in each URL. Hope that extra memory use is OK. Committed r290341 (247661@main): <https://commits.webkit.org/247661@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 452790 [details]. |