After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 336327 - pixbuf_new_from_file_at_size() very slow with specific small resolutions
pixbuf_new_from_file_at_size() very slow with specific small resolutions
Status: RESOLVED DUPLICATE of bug 80925
Product: gdk-pixbuf
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 667120 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-03-28 11:44 UTC by herrekberg
Modified: 2013-03-27 18:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description herrekberg 2006-03-28 11:44:15 UTC
Loading time for gtk.gdk.pixbuf_new_from_file_at_size() is greatly increased when given specific small x/y resolutions as paramaters.

Example:

gtk.gdk.pixbuf_new_from_file_at_size("example.png", 20, 20)
Time to complete: 0.17 s

gtk.gdk.pixbuf_new_from_file_at_size("example.png", 19, 19)
Time to complete: 0.16 s

gtk.gdk.pixbuf_new_from_file_at_size("example.png", 18, 18)
Time to complete: 1.06 s

gtk.gdk.pixbuf_new_from_file_at_size("example.png", 17, 17)
Time to complete: 0.43 s

gtk.gdk.pixbuf_new_from_file_at_size("example.png", 16, 16)
Time to complete: 0.17 s

gtk.gdk.pixbuf_new_from_file_at_size("example.png", 15, 15)
Time to complete: 0.18 s

gtk.gdk.pixbuf_new_from_file_at_size("example.png", 14, 14)
Time to complete: 2.93 s

gtk.gdk.pixbuf_new_from_file_at_size("example.png", 13, 13)
Time to complete: 7.25 s

gtk.gdk.pixbuf_new_from_file_at_size("example.png", 12, 12)
Time to complete: 0.23 s

gtk.gdk.pixbuf_new_from_file_at_size("example.png", 11, 11)
Time to complete: 1.80 s

gtk.gdk.pixbuf_new_from_file_at_size("example.png", 10, 10)
Time to complete: 0.45 s

I don't know the details of the algorithms used by gtk.gdk.pixbuf_new_from_file_at_size(), but I guess that this behaviour should not be expected.

The image file used was a 1280x1024 px PNG image of about 2.0 MiB.
Comment 1 Matthias Clasen 2006-03-28 15:32:05 UTC
This is a symptom of the problem described in bug 80925

*** This bug has been marked as a duplicate of 80925 ***
Comment 2 Christian Persch 2013-03-27 18:24:07 UTC
*** Bug 667120 has been marked as a duplicate of this bug. ***