catacombing / kumo

A Wayland Mobile Browser
GNU General Public License v3.0
19 stars 2 forks source link

History popup slows down text input #42

Closed chrisduerr closed 4 months ago

chrisduerr commented 4 months ago

When the history popup opens, there's a clear delay in text repetition. Might be worth investigating if the performance can be improved here, since the popup should ideally be fully asynchronous.

Things that need fixing:

chrisduerr commented 4 months ago

Some slow related functions:

Function Mean
Overlay::draw 58.594 ms
Ui::draw 4.783 ms
Window::open_history_menu 28.397 ms
History::matches 1.650 ms
chrisduerr commented 4 months ago

Further drilldown into Overlay::draw indicates the amount of text rasterization for each individual item is at fault:

tmp

Possible solutions:

chrisduerr commented 4 months ago

Further drilldown into Window::open_history_menu indicates the height calculation for each individual layout is at fault:

tmp

Possible solutions: