Performance of GEGL

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

 



Hi,

I've just installed GEGL and BABL and started to do some test. For
example the following code :

#include <gegl.h>
gint main(gint argc, gchar **argv) {
	GeglNode *gegl, *load, *size, *outp;

	gegl_init(&argc, &argv);
	gegl = gegl_node_new();
	load = gegl_node_new_child(gegl, "operation", "load", "path", "data/test.jpg", NULL);
	size = gegl_node_new_child(gegl, "operation", "scale", "x", 2.0, "y", 2.0, NULL);
	outp = gegl_node_new_child(gegl, "operation", "png-save", "path", "data/ouput.png", NULL);

	gegl_node_link_many(load, size, outp, NULL);
	gegl_node_process(outp);

	g_object_unref(gegl);
	gegl_exit();

	return 0;
}

This code just load an image (620x450) scale it by 2 in each dimension
and save it to an output jpeg file. So there is only simple operation on
small image but it take more than 30sec at 100% cpu on my Pentium4
3.4GHz !!!

So is it me who had done something wrong ar is GEGL and BABL so slow ?

For simplicity I've used the last released version of both and not SVN
version, but I don't think it will be so different. I suppose the error
come from elsewhere.
Both library are compiled with dry run of ./configure, make and make
install. The example program is compiled by :

cc -O3 -W -Wall `pkg-config --libs --cflags gegl` test.c -o test

and the output :
thomas:~/test$ time ./test
  buffer-leaks: 3

  real 32.007
  user 31.366
  sys 0.612
  pcpu 99.90

So does any of you have an idea about what can cause this slow down ?

Thanks

Tom

-- 
Thomas Lavergne                       "Le vrai rêveur est celui qui rêve
                                       de l'impossible."  (Elsa Triolet)
thomas.lavergne@xxxxxxxxxxx                           http://reveurs.org
_______________________________________________
Gegl-developer mailing list
Gegl-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer


[Index of Archives]     [Yosemite News]     [Yosemite Photos]     [gtk]     [GIMP Users]     [KDE]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux