GNOME Bugzilla – Bug 336327
pixbuf_new_from_file_at_size() very slow with specific small resolutions
Last modified: 2013-03-27 18:24:07 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.
This is a symptom of the problem described in bug 80925 *** This bug has been marked as a duplicate of 80925 ***
*** Bug 667120 has been marked as a duplicate of this bug. ***