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

Slow response #23

Closed
alex3236 opened this issue Oct 22, 2023 · 3 comments
Closed

Slow response #23

alex3236 opened this issue Oct 22, 2023 · 3 comments

Comments

@alex3236
Copy link

When you indexed large amount of files, Catapult become slow when you pressing keys.

I haven't do any debugging, but based on the appearance, it seems that the slow response is caused by rendering the icon in real time.

Maybe add a search interval (don't search immediately on key press) and do lazy load for temporarily invisible content?

@otsaloma
Copy link
Owner

otsaloma commented Oct 22, 2023

Maybe I should limit the total amount of results to something like 20 per plugin? It doesn't make sense to try to display any huge result list, no one's going to scroll through that.

Also, the files plugin in Catapult is not really designed to sensibly handle huge indexes, I'd recommend indexing top-level directories like ~/*, ~/Projects/* etc. and continuing navigation in a file browser. Or, if you need huge indexes, someone (not me) should write a plugin that interacts with Tracker or whatever you already have running on your system.

otsaloma added a commit that referenced this issue Oct 23, 2023
@otsaloma
Copy link
Owner

I tried to the above with a file index of 73k files. It seemed to work fine to me. Feel free to test it, otherwise I'll assume this is fixed.

@alex3236
Copy link
Author

I believe it's fixed now. Thanks for your kind response.

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

2 participants