onagre-launcher / onagre

A general purpose application launcher for X and wayland inspired by rofi/wofi and alfred
MIT License
514 stars 27 forks source link

Perf - possible improvement #31

Closed oknozor closed 2 years ago

oknozor commented 2 years ago

Opening the database: Opening the database on start is quite slow. We could probably spawn and iced subscription and send command history when it's ready. Or maybe try to switch to a simpler solution like a plain text file or some binary format in $XDG_CACHE_DIR

open_db

Fetching db entries:

While opening the db is slow, fetching entries is fast.

fetch_all_entry

Icon lookup:

I think because of glob patterns, this is completely random, we need to fetch in the background via iced messages.

image