| Summary: | optimize content extension interpreting | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alex Christensen <achristensen> | ||||||
| Component: | WebCore Misc. | Assignee: | Alex Christensen <achristensen> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | benjamin | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Alex Christensen
2015-04-07 11:39:20 PDT
Created attachment 250280 [details]
Patch
Created attachment 250281 [details]
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=250281&action=review > Source/WebCore/contentextensions/ContentExtensionsBackend.cpp:80 > + if (resourceLoadInfo.resourceURL.protocolIsData() > + || resourceLoadInfo.resourceURL.protocolIsJavaScript()) This could be on a single line. > Source/WebCore/contentextensions/ContentExtensionsBackend.cpp:130 > + WTFLogAlways("Time added: %f microseconds %s", (addedTimeEnd - addedTimeStart) * 1.0e6, resourceLoadInfo.resourceURL.string().utf8().data()); Isn't that a bit too verbose? Maybe printing the average after every 100 urls would be easier to work with? > Source/WebCore/contentextensions/DFABytecodeCompiler.cpp:113 > + // If we jump to the root, we don't want to re-add its actions to a HashSet. > + // We know we have already added them because the root is always compiled first and we always start interpreting at the beginning. That's a good point! Touching URL.h broke things. Undid that in http://trac.webkit.org/changeset/182500 |