1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00
ladybird/Userland/Libraries/LibWeb/Page
Timothy Flynn 5d71758742 LibWeb: Move initial creation of Unicode segmenters to the Document
The expensive part of creating a segmenter is doing the locale and UCD
data lookups at creation time. Instead of doing this once per text node,
cache the segmenters on the document, and clone them as needed (cloning
is much, much cheaper).

On a profile loading Ladybird's GitHub repo, the following hot methods
changed as follows:

    ChunkIterator ctor: 6.08% -> 0.21%
    Segmenter factory:  5.86% ->    0%
    Segmenter clone:    N/A   -> 0.09%
2024-09-22 18:42:31 +02:00
..
DragAndDropEventHandler.cpp LibWeb+LibWebView+WebContent: Return a named enum from UI event handlers 2024-09-12 17:38:36 -04:00
DragAndDropEventHandler.h LibWeb+LibWebView+WebContent: Return a named enum from UI event handlers 2024-09-12 17:38:36 -04:00
EditEventHandler.cpp LibWeb: Note what's causing a style invalidation to happen 2024-09-08 09:45:31 +02:00
EditEventHandler.h LibWeb: Move the navigable's cursor position to be owned by the document 2024-08-02 18:40:39 +02:00
EventHandler.cpp LibWeb: Move initial creation of Unicode segmenters to the Document 2024-09-22 18:42:31 +02:00
EventHandler.h LibWeb+LibWebView+WebContent: Return a named enum from UI event handlers 2024-09-12 17:38:36 -04:00
EventResult.h LibWeb+LibWebView+WebContent: Return a named enum from UI event handlers 2024-09-12 17:38:36 -04:00
InputEvent.cpp LibWeb+LibWebView+WebContent: Add IPC to send drag-and-drop events 2024-08-19 13:29:19 +02:00
InputEvent.h LibWeb+LibWebView+WebContent: Add IPC to send drag-and-drop events 2024-08-19 13:29:19 +02:00
Page.cpp LibWeb+LibWebView+WebContent: Return a named enum from UI event handlers 2024-09-12 17:38:36 -04:00
Page.h LibWeb+LibWebView+WebContent: Return a named enum from UI event handlers 2024-09-12 17:38:36 -04:00