GdkPixbufLoader vs. _from_file: speed issue

2005-08-24 Thread Nicolas George
I am trying to load an image, and I am comparing two methods: a plain gdk_pixbuf_new_from_file, and a GdkPixbufLoader with a fread/gdk_pixbuf_loader_write loop. I am very surprised by the difference of efficiency of both methods: with my sample image, on the computer I am using,

Re: GdkPixbufLoader vs. _from_file: speed issue

2005-08-24 Thread Matthias Clasen
On Wed, 2005-08-24 at 17:59 +0200, Nicolas George wrote: I am trying to load an image, and I am comparing two methods: a plain gdk_pixbuf_new_from_file, and a GdkPixbufLoader with a fread/gdk_pixbuf_loader_write loop. I am very surprised by the difference of efficiency of both methods: with my

Re: GdkPixbufLoader vs. _from_file: speed issue

2005-08-24 Thread Nicolas George
Le septidi 7 fructidor, an CCXIII, Matthias Clasen a écrit : That sounds wrong. Can you post your benchmark ? It was somewhat overloaded with irrelevant stuff: I have rewritten it from scratch with the bare minimum. Here is it. It may be built with: gcc -Wall -W -std=c99 -D_XOPEN_SOURCE=600 -g