Commit 3d0ebd08 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

added a comment about the use of mallopt() and what could be done instead.

2005-02-15  Sven Neumann  <sven@gimp.org>

	* app/main.c (gimp_init_malloc): added a comment about the use of
	mallopt() and what could be done instead. Use the TILE_WIDTH and
	TILE_HEIGHT defines to determine the M_MMAP_THRESHOLD value.
parent 2b63addc
2005-02-15 Sven Neumann <sven@gimp.org>
* app/main.c (gimp_init_malloc): added a comment about the use of
mallopt() and what could be done instead.
mallopt() and what could be done instead. Use the TILE_WIDTH and
TILE_HEIGHT defines to determine the M_MMAP_THRESHOLD value.
2005-02-14 Sven Neumann <sven@gimp.org>
......
......@@ -37,9 +37,12 @@
#include "libgimpbase/gimpbase.h"
#include "core/core-types.h"
#include "base/tile.h"
#include "config/gimpconfig-dump.h"
#include "core/core-types.h"
#include "core/gimp.h"
#include "app_procs.h"
......@@ -462,7 +465,7 @@ gimp_init_malloc (void)
* An alternative to tuning this parameter would be to use
* malloc_trim(), for example after releasing a large tile-manager.
*/
mallopt (M_MMAP_THRESHOLD, 64 * 64 - 1);
mallopt (M_MMAP_THRESHOLD, TILE_WIDTH * TILE_HEIGHT);
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment