mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 09:04:30 +00:00
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
31 KiB
31 KiB