| Summary: | white space atomization during parsing is expensive | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Cameron McCormack (:heycam) <heycam> | ||||||||
| Component: | DOM | Assignee: | Cameron McCormack (:heycam) <heycam> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | cdumez, changseok, esprehn+autocc, ews-watchlist, gyuyoung.kim, kangil.han, pvollan, webkit-bug-importer, ysuzuki | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Local Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Cameron McCormack (:heycam)
2021-08-05 22:41:56 PDT
Created attachment 435057 [details]
Patch
Created attachment 435138 [details]
Patch
Comment on attachment 435138 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435138&action=review r=me > Source/WebCore/html/parser/HTMLConstructionSite.cpp:858 > + code |= (end - startOfRun); It should be `character - startOfRun`. Created attachment 435169 [details]
Patch
Committed r280772 (240356@main): <https://commits.webkit.org/240356@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 435169 [details]. Committed r280773 (240357@main): <https://commits.webkit.org/240357@main> Comment on attachment 435169 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435169&action=review > Source/WebCore/html/parser/HTMLConstructionSite.cpp:896 > + WTFLogAlways("reuse code %llx", code); Will this create a lot of logging? > Source/WebCore/html/parser/HTMLConstructionSite.cpp:901 > + WTFLogAlways("override"); Ditto. > Source/WebCore/html/parser/HTMLConstructionSite.cpp:906 > + WTFLogAlways("replace code %llx", code); Ditto. > Source/WebCore/html/parser/HTMLConstructionSite.cpp:913 > + WTFLogAlways("new code %llx", code); Ditto. (In reply to Per Arne Vollan from comment #8) > Comment on attachment 435169 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=435169&action=review > > > Source/WebCore/html/parser/HTMLConstructionSite.cpp:896 > > + WTFLogAlways("reuse code %llx", code); > > Will this create a lot of logging? Yes, Yusuke removed them shortly after this patch landed. |