Files
ladybird/Userland/Libraries/LibWeb/DOM
Andreas Kling 43ef3dc0ab LibWeb: Cache attribute names in lowercase to speed up selector matching
When matching a CSS attribute selector against an HTML element, the
attribute name is case-insensitive. Before this change, that meant we
had to call equals_ignoring_ascii_case() on all the attribute names.

We now cache the attribute name lowercased on each Attr node, which
allows us to do FlyString-to-FlyString comparison (simple pointer
comparison).

This brings attribute selector matching from 6% to <1% when loading our
GitHub repo at https://github.com/SerenityOS/serenity
2024-03-16 14:27:59 +01:00
..
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00
2023-11-11 08:51:51 +01:00