Max Wipfli
054c742d17
LibWeb: Remove Utf8View usage and try avoiding StringBuilder in TextNode
...
This patch completely reworks TextNode::compute_text_for_rendering(). It
removes the unnecessary usage of Utf8View to find spaces in a String.
Furthermore, it adds a couple fast return paths for common but trivial
cases such as empty, single-character and whitespace-less strings.
For the HTML spec bookmarks, around two thirds of all function calls
(which amounts to around 10'000) use the fast paths and thus avoid
allocating a StringBuilder just to build a copy of the already present
String.
2021-06-04 09:39:07 +02:00
..
2021-05-02 22:48:06 +02:00
2021-04-22 11:22:27 +02:00
2021-05-30 12:39:53 +02:00
2021-04-22 11:22:27 +02:00
2021-05-30 12:39:53 +02:00
2021-05-20 22:08:02 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-30 12:39:53 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-30 12:39:53 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-04 15:36:07 +01:00
2021-04-22 19:17:10 +02:00
2021-05-30 12:39:53 +02:00
2021-04-22 11:22:27 +02:00
2021-05-30 12:39:53 +02:00
2021-05-30 12:39:53 +02:00
2021-05-30 12:39:53 +02:00
2021-05-13 16:16:25 +02:00
2021-05-02 22:48:06 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-30 12:39:53 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-02 22:48:06 +02:00
2021-04-22 11:22:27 +02:00
2021-05-12 08:53:18 +01:00
2021-04-22 11:22:27 +02:00
2021-05-13 15:43:51 +02:00
2021-05-12 08:53:18 +01:00
2021-05-30 12:39:53 +02:00
2021-05-30 12:39:53 +02:00
2021-05-30 12:39:53 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-23 08:24:53 +02:00
2021-04-23 08:24:53 +02:00
2021-04-23 08:24:53 +02:00
2021-04-23 08:24:53 +02:00
2021-04-22 11:22:27 +02:00
2021-04-23 08:24:53 +02:00
2021-04-23 08:24:53 +02:00
2021-04-23 08:24:53 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-30 12:39:53 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-06-04 09:39:07 +02:00
2021-04-29 10:34:02 +02:00
2021-04-23 16:46:57 +02:00
2021-04-22 11:22:27 +02:00