gegl r2224 - in trunk: . gegl
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r2224 - in trunk: . gegl
- Date: Wed, 23 Apr 2008 22:54:56 +0100 (BST)
Author: ok
Date: Wed Apr 23 21:54:56 2008
New Revision: 2224
URL: http://svn.gnome.org/viewvc/gegl?rev=2224&view=rev
Log:
* gegl/gegl-init.c: (gegl_post_parse_hook): read GEGL_CACHE_SIZE from
environment.
* gegl/gegl-config.c: (gegl_config_init): made the default cache size
256mb.
Modified:
trunk/ChangeLog
trunk/gegl/gegl-config.c
trunk/gegl/gegl-init.c
Modified: trunk/gegl/gegl-config.c
==============================================================================
--- trunk/gegl/gegl-config.c (original)
+++ trunk/gegl/gegl-config.c Wed Apr 23 21:54:56 2008
@@ -152,5 +152,5 @@
{
self->swap = NULL;
self->quality = 1.0;
- self->cache_size = 64*1024*1024;
+ self->cache_size = 256*1024*1024;
}
Modified: trunk/gegl/gegl-init.c
==============================================================================
--- trunk/gegl/gegl-init.c (original)
+++ trunk/gegl/gegl-init.c Wed Apr 23 21:54:56 2008
@@ -334,6 +334,10 @@
config = g_object_new (GEGL_TYPE_CONFIG, NULL);
if (g_getenv ("GEGL_QUALITY"))
config->quality = atof(g_getenv("GEGL_QUALITY"));
+ if (g_getenv ("GEGL_CACHE_SIZE"))
+ config->cache_size = atoi(g_getenv("GEGL_CACHE_SIZE"))* 1024*1024;
+
+
if (gegl_swap_dir())
config->swap = g_strdup(gegl_swap_dir ());
if (cmd_gegl_swap)
@@ -423,7 +427,7 @@
gegl_instrument ("gegl", "gegl_init", gegl_ticks () - global_time);
if (g_getenv ("GEGL_SWAP"))
- g_object_set (config, "swap-path", g_getenv ("GEGL_SWAP"), NULL);
+ g_object_set (config, "swap", g_getenv ("GEGL_SWAP"), NULL);
if (g_getenv ("GEGL_QUALITY"))
{
const gchar *quality = g_getenv ("GEGL_QUALITY");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]