Mailinglist Archive: opensuse-bugs (4203 mails)

< Previous Next >
[Bug 777419] New: gtk-update-icon-cache is way too slow
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 26 Aug 2012 15:03:35 +0000
  • Message-id: <bug-777419-21960@http.bugzilla.novell.com/>

https://bugzilla.novell.com/show_bug.cgi?id=777419

https://bugzilla.novell.com/show_bug.cgi?id=777419#c0


Summary: gtk-update-icon-cache is way too slow
Classification: openSUSE
Product: openSUSE 12.2
Version: RC 2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Minor
Priority: P5 - None
Component: GNOME
AssignedTo: bnc-team-gnome@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: christian.morales.vega@xxxxxxxxx
QAContact: qa-bugs@xxxxxxx
Found By: Community User
Blocker: ---


This has been know for long. And I don't expect a quick fix. But just to have
it documented somewhere, since the problem is real and for example right now I
don't remember why an incremental gtk-update-icon-cache wasn't possible.

Updating kdenlive, an example of a package needed the full MIME + .desktop +
icons scriplets, the problem gets obvious.
You get half a second to update the MIME database, less than 20 ms to update
the mime -> application database... and EIGHT SECONDS (2 for hicolor and 6 for
oxygen) to update the GTK icon database.

I run them twice to discard cache effects.

$ time /usr/bin/update-mime-database "/usr/share/mime"
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'

real 0m0.495s
user 0m0.389s
sys 0m0.104s
$ time /usr/bin/update-mime-database "/usr/share/mime"
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'

real 0m0.501s
user 0m0.386s
sys 0m0.111s
$ time /usr/bin/update-desktop-database --quiet "/usr/share/applications"

real 0m0.017s
user 0m0.012s
sys 0m0.005s
$ time /usr/bin/update-desktop-database --quiet "/usr/share/applications"

real 0m0.014s
user 0m0.009s
sys 0m0.004s
$ time /usr/bin/gtk-update-icon-cache --quiet --force
"/usr/share/icons/hicolor"

real 0m1.951s
user 0m0.871s
sys 0m0.155s
$ time /usr/bin/gtk-update-icon-cache --quiet --force
"/usr/share/icons/hicolor"

real 0m1.968s
user 0m0.853s
sys 0m0.173s
$ time /usr/bin/gtk-update-icon-cache --quiet --force "/usr/share/icons/oxygen"

real 0m6.413s
user 0m2.899s
sys 0m0.478s
$ time /usr/bin/gtk-update-icon-cache --quiet --force "/usr/share/icons/oxygen"

real 0m5.926s
user 0m2.921s
sys 0m0.467s

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
This Thread
  • No further messages