Comments (7)
It would of course be good to do something about this model. I don't believe we do source update in the background, apart from the full rescan every hour.
Thanks for your explanations.
I still don't quite understand how/why the "Documents" plugin causes the lag in my case. But for me the "solution" to just disable it (since I don't need it urgently) and instead use the "Deep Directories" plugin, is fine.
To me it's always beautiful when applications run/react fast even with a HDD but I do understand that this isn't all that relevant for most people nowadays, as almost everyone is running SSDs.
So there's no need to change anything about the inner workings of Kupfer from my perspective.
from kupfer.
You can try:
- disable unused plugins
- switch off "Show only existing documents" in "Document" plugin configuration
- Reduce number of "Indexed folder"
- and never add to indexed folders network shares, cdrom, floppy etc
- not put link to networks shares, cdroms, floppy etc in indexed folders (as read metadata may need to access this devices)
- run in debug mode (--debug argument) and see what Kupfer waiting on.
There is no list files that Kupfer open and you can simple cache. Usually Kupfer spend time on looking for files in some directories. Some plugins need load some files, but usually it is in background.
I guess. rather upgrade hdd to ssd may help.
from kupfer.
Thank you.
- My active plugins are: Applications, Deep Directories, Documents, Quicksilver Icons
- I'll try that
- I'll try that
- not the case
- probably not the case
- I'll try that
My impression is that whenever I have to wait on Kupfer, it's because of the Applications plugin loading the application list.
Maybe I'll find a way to cache the app icons or similar.
Upgrade to SSD would surely help, yes. But I'd rather fiddle with the software to solve this.
from kupfer.
System cache .desktop files with application icons when necessary. Applications icons may be located in various places (usually in /usr/share/icons, but may be somewhere else).
Problem is rather in 'Documents' plugin - because recent documents are bound (i short) to applications - show each application leaf require check for recent documents and this may take time.
Please disable Documents plugin and check.
Kupfer itself don't use to much memory. As far I remember 2GB ram is enough for kupfer with debian/xfce and normal task. And it simply work fine.
from kupfer.
Thanks.
I've disabled 'Documents' plugin now. Will see if the issue is gone then.
How about a different way to approach this: what if I try to invoke Kupfer regularly (every 2 min) in the background (so without the UI showing up) in such a way that it needs to fetch the data so that it's cached again (if for some reason it's been pushed from cache since the last time)?
I know Kupfer can be run from command line and I already tried running the kupfer --no-splash
as a cron job, but this doesn't go as far as caching the files that are accessed during a query.
I'm not too firm with Python. How would I (from command line) run Kupfer or maybe just some Python function that belongs to Kupfer (without GUI) to simulate the down key being pressed in the GUI (which makes the list appear in Kupfer GUI). I think this might trigger the reading/caching of enough files, so that next time I really open Kupfer, it'd already have all needed files and be responsive instantly.
from kupfer.
Hi, Kupfer has this model: sources listen for change notifications if applicable, and if anything changes, they mark themselves as needs-rescan (but do not eagerly rescan).
For example, the home directory is a directory source, and if any file changes in the home directory, that source is marked for rescan. (The home directory is a common cause for behaviour that you describe, lots of processes might change hidden files there.)
These sources that are "marked for rescan" will rescan eagerly and synchronously the next time you search, so you'll have to wait for rescan of for example your home directory if anything changed there recently. This rescan happens "on your keypress", more or less. To reiterate, the old index of that source is never used if we already marked the source as needing rescan.
It would of course be good to do something about this model. I don't believe we do source update in the background, apart from the full rescan every hour.
from kupfer.
Problem is rather in 'Documents' plugin
Appears to be correct. In my case the lag that occurred before is indeed now gone, since I disabled the 'Documents' plugin.
Just turning off this toggle here, did not help in my case:
- switch off "Show only existing documents" in "Document" plugin configuration
Interestingly, I still have the 'Deep Directories' plugin active. I would have thought that this plugin might lead to even more scanning and disk access than the "Documents" plugin, possibly causing lags, since it catches quite a wide scope of files (my setting: ~/ dir + 2 levels), but this doesn't seem to be the case.
from kupfer.
Related Issues (20)
- Enhancement: Facilitate quitting Application processes if running HOT 2
- Firefox plugins not functional HOT 2
- Cannot set launch keys on Ubuntu 21.10 after Upgrade HOT 2
- Add SECURITY.md / Insecure ConservativeUnpickler HOT 6
- thunderbird_support.py throws SQL error: cards table absent HOT 3
- Segfaults under Wayland with new libwnck HOT 8
- [Cinnamon] Super+space requires 2 space presses HOT 2
- About shows version undefined and copyright only until 2017 HOT 1
- Plugin ssh-host: implement copy ip to clipboard action ? HOT 1
- "Run in terminal" not sticking HOT 5
- Add extra alias/nickname/tag to any item HOT 2
- [fr] Make the `selected text` obj dynamic HOT 1
- Kupfer v323: [kupfer.core.plugins]: SyntaxError: '(' was never closed (apt_tools.py, line 14) HOT 2
- triggers plugin: can't reassign keyboard shortcut if target file is missing HOT 1
- Kupfer change letter case when copy HOT 2
- Kupfer seems broken with Python 3.11.8 (but not 3.11.7) HOT 7
- Convert > connect lines > You can choose the separator it will use in the settings.
- Rename "master" branch to "main" HOT 3
- Kupfer often crashes on first invocation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kupfer.