HTMLTokenizer should use the latest EfficientStrings hotness
Created attachment 161111 [details] Patch
Comment on attachment 161111 [details] Patch This still causes a malloc. YOu could do this as part of the DEFINE_STATIC_LOCAL call however.
Created attachment 161112 [details] Patch
If we're going to do this inside the DEFINE_STATIC_LOCAL, we might as well just use ASCIILiteral then since the strlen only happens once per string.
Comment on attachment 161112 [details] Patch Great! Looking at the implementation of lookAhead(), I think it would be possible to make a version that does not need static or allocations. I don't know if it is worth it or not, it depends on how hot this path is. > Source/WebCore/ChangeLog:9 > + Using ASCIILiteral avoids memcpying the string into the heap and > + therefore uses less total memory. It does not always saves memory (due to the way the allocator works) but it is also always faster ;)
Comment on attachment 161112 [details] Patch Clearing flags on attachment: 161112 Committed r127899: <http://trac.webkit.org/changeset/127899>
All reviewed patches have been landed. Closing bug.