Re: [Gimp-developer] 2GB limit on Resource Consumption: Tile cache size



On Tue, 2012-09-18 at 15:35 +0200, Tobias Jakobs wrote:
> On Tue, Sep 18, 2012 at 2:15 PM, Elle Stone <l elle stone gmail com> wrote:
> > ...
> >
> > The warning says that the "type" for the tile cache size is "gint",
> > which means 2GB really is the limit. At least on my system. To check
> > the maximum that "gint" can hold on my system, I added in a printf
> > statement in the lcms plug-in code that I'm working on, to print out
> > G_MAXINT, which turns out to be 2GB. See
> > http://developer.gnome.org/glib/stable/glib-Basic-Types.html#G-MAXINT:CAPS.
> >
> > As anything greater than 2GB exceeds the limit of what "gint" can
> > hold, I don't see how setting anything greater than 2GB through
> > "Preferences" actually gets you more than 2GB.
> 
> For me, as a not C developer, it looks like this should be changet to
> guint or even better guint64. But lets wait what Mitch things about
> this.

I think pull, the code was broken:

commit 52af6e3f3f67d37aa72d06a5f60b1a3967d6c297
Author: Michael Natterer <mitch gimp org>
Date:   Tue Sep 18 20:07:13 2012 +0200

    app: fix the code that sets the 64bit tile cache size on GeglConfig

 app/gegl/gimp-gegl.c |   18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

--mitch




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