Slingshot makes disk lookups on every reveal [$20]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Slingshot |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Following up on bug 1043689, Slingshot's startup time has improved, but it still makes a number of synchronous disk lookups every time it's revealed. This should not be necessary.
The main problem is that Slingshot performs 38 stat() calls, mostly on icon dirs, that cause HDD spin-up and multiple HDD seeks. This may take a while and slows down workflow.
Instead of checking directory presence on every reveal Slingshot should only check their presence on startup and then use inotify-based watches to monitor their presence passively.
The secondary problem are 4 open() and access() syscalls that are called on UI icon files Slingshot uses. These disk lookups might very well be rooted in Granite or GTK. The icon files are likely to be cached, so they're not a huge issue.
The full system call trace is attached. The instructions on reproducing it are included in the file.
Changed in slingshot: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in slingshot: | |
milestone: | none → loki-beta1 |
Changed in slingshot: | |
status: | Fix Committed → Fix Released |
summary: |
- Slingshot makes disk lookups on every reveal [$15] + Slingshot makes disk lookups on every reveal [$20] |
Bounty: https:/ /www.bountysour ce.com/ issues/ 919700- slingshot- makes-disk- lookups- on-every- reveal