On Tue, Oct 19, 2010 at 10:12 PM, Jan Kovanda <kovandajan11...@gmail.com> wrote:
> A testing picture is 8.5 MB RGB jpeg image 6000px x 6000px.

uncompressed this is 103 MB as 8bit RGB data, 549 MB as 32bit float
RGBA data which is what GEGL prefers to work with internally.

> Why GEGL needs so much resources for such simple program?
> I am not so familiar with inner workings of buffers and caching, but I would
> expect smaller use of the resources.

At least the load and save ops themselves need a buffer the full size
of the image to be able to do all the png processing in one go, there
is potentially also caches for some of the other operations in a
graph.

> Why those swap files are created?
> In the program I didn't set any properties for swapping to disk.

GEGL defaults to swapping to disk, see the various environment
variables in http://gegl.org/#_environment for how to tweak this,
these settings are also available in the singleton object returned
with gegl_config()

You would probably want to increase the tile cache size which defaults
to 256mb by setting GEGL_CACHE_SIZE

Disable swapping to disk by setting GEGL_SWAP=RAM in the environment,
this will cause GEGL to "swap" unused tiles to RAM instead.

/Øyvind K.
--
_______________________________________________
Gegl-developer mailing list
Gegl-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer

Reply via email to