Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lag in ilia file search #37

Open
carderne opened this issue Jul 23, 2022 · 5 comments
Open

Lag in ilia file search #37

carderne opened this issue Jul 23, 2022 · 5 comments

Comments

@carderne
Copy link

New issue brought over from #23 as requested.

Running Regoligh 2.1.

Scenario

  • I hit Meta+Alt+Space and the search window pops up after a tiny delay.
  • Then I start typing "dial", but it lags after "di" for 1-2 seconds before displaying the "a".
  • Depending on the word, there's 1-2 seconds of lag with each additional keystroke.
@ferdinandyb
Copy link
Member

I checked and same here, it actually blocked any input for almost 10 seconds after pressing some keys. What does ilia use to get the files and filter? It would be nice if ilia could be a frontend for already very fast tools like fzf, at least I personally miss that feature from rofi.

@kgilmer
Copy link
Member

kgilmer commented Jul 30, 2022

What does ilia use to get the files and filter?

we're making sparql queries against the tracker backend. I don't notice this behavior myself, perhaps I should test on slower hardware. I think we could introduce a rate limiter to avoid spamming the tracker backend as a user modifies the entry text.

https://github.com/regolith-linux/ilia/blob/main/src/tracker/TrackerPage.vala#L121-L127

@carderne
Copy link
Author

carderne commented Aug 5, 2022

I’m on a modern 6-core desktop processor so I don’t think hardware is the issue for me.

@kgilmer
Copy link
Member

kgilmer commented Dec 26, 2022

Perhaps then the performance issue comes in on systems with a large number of files..?

@bobdanek
Copy link

Same issue here, building from the app-load-optimization branch and tossing that into ~/.local/bin results in a much less laggy initial launch. I still manage to get a character or two typed into the window that had focus before ilia launched, but previously it was more like 5 or 6 characters.

Still a small delay, but it's much better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants