1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 14:15:08 +00:00
serenity/Userland/Libraries/LibWeb/HTML/Parser
Andreas Kling c79e8aab0a LibWeb: Make ON_WHITESPACE less heavy in HTML tokenizer
Once we know that the current code point is an ASCII character, we can
just check if it's one of the HTML whitespace characters.

Before this patch, we were using the generic StringView::contains(u32)
path that splats a code point into a StringBuilder and then searches
for it with memmem().

This reduces time spent in the HTML tokenizer from 16% to 6% when
loading the ECMA-262 spec.
2022-11-05 00:31:11 +01:00
..
Entities.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
Entities.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
HTMLEncodingDetection.cpp LibWeb: Replace incorrect uses of AK::is_ascii_space() 2022-10-02 21:32:49 +02:00
HTMLEncodingDetection.h LibWeb: Add missing includes 2022-09-18 13:27:24 -04:00
HTMLParser.cpp LibWeb: Handle currently ignored WebIDL::ExceptionOr<T>s 2022-10-31 14:12:44 +00:00
HTMLParser.h LibWeb: Make the HTMLParser GC-allocated 2022-10-20 15:16:23 +02:00
HTMLToken.cpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
HTMLToken.h LibWeb: Store HTML tag name token data as FlyString while parsing 2022-10-04 21:30:58 +02:00
HTMLTokenizer.cpp LibWeb: Make ON_WHITESPACE less heavy in HTML tokenizer 2022-11-05 00:31:11 +01:00
HTMLTokenizer.h LibWeb: Implement aborting the HTML parser 2022-09-20 23:44:59 +02:00
ListOfActiveFormattingElements.cpp LibWeb: Make the HTMLParser GC-allocated 2022-10-20 15:16:23 +02:00
ListOfActiveFormattingElements.h LibWeb: Make the HTMLParser GC-allocated 2022-10-20 15:16:23 +02:00
StackOfOpenElements.cpp LibWeb: Make the HTMLParser GC-allocated 2022-10-20 15:16:23 +02:00
StackOfOpenElements.h LibWeb: Make the HTMLParser GC-allocated 2022-10-20 15:16:23 +02:00