Re: [gtk-list] [patch] gdkpixmap patch



Tom Bech <tomb@ii.uib.no> wrote:

> Here's a patch to make the gdk pixmap loader use a color
> context for color allocation instead of gdk_color_alloc.
> I'm not sure if this speeds things up. Could someone give
> me some feedback on that?

This improved things markedly on my small test image.  The time spent in 
gdk_pixmap_create_from_xpm was about a third of what it was pre-patch.  
Curiously, I observed that with the old version, the time to reload the 
same image file subsequent times kept increasing significantly (three 
seconds, four, five, ...).  With the patch, this does not happen.

However, the routine is still unusable for larger images.  My image was 
50x50, and took a second to load on a Linux Pentium.  I need to load 
images around 300x300 in size.

Ok, I finally got gdk_imlib compiled and running.  I copied code from the
tutorial on rasterman's page.  It popped up my small test image rapidly,
but strangely, it too starts taking _forever_ on larger images (100x100
is a snap, 150x150 is over thirty seconds).  Some algorithm is really
bad.  I'll find it if nobody has any insights. 

Andrew



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]