cantino/mcfly

Asynchronously load database, show UI immediately

copy opened this issue · 3 comments

copy commented

Even after with the addition of MCFLY_HISTORY_LIMIT, cltr-r still feels pretty unresponsive with a large database, as measured in #125 (comment). It could feel much better if the results were loaded asynchronously, similar to how fzf does it.

How large of a database / history do you have?

copy commented

The commands table in my history.db has 470000 rows.

Maybe we need a way to dedup or reduce history instead?

I'm open to ways to improve this. Not sure how async would work, though.