onagre-launcher / onagre

A general purpose application launcher for X and wayland inspired by rofi/wofi and alfred

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Perf - possible improvement

oknozor opened this issue · comments

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