octave-maintainers
[Top][All Lists]
Advanced

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

Re: OCTAVE_LOCAL_BUFFER


From: Jaroslav Hajek
Subject: Re: OCTAVE_LOCAL_BUFFER
Date: Fri, 12 Dec 2008 12:57:44 +0100

On Sat, Dec 6, 2008 at 8:15 AM, Jaroslav Hajek <address@hidden> wrote:
> On Thu, Dec 4, 2008 at 6:25 PM, Jaroslav Hajek <address@hidden> wrote:

> There is a more sophisticated optimization of local buffers possible.
> Since they have a FIFO semantics, it is possible to allocate big
> chunks (say, 16 MB) in a stack-like manner and serve local buffers
> from them. Obstacks from the GNU C library are based on the same idea
> (except that using obstacks would be an overkill, because we would
> need only a small subset of their functionality).
>

This optimization is now uploaded. Octave will use a stack of 32MB
chunks and serve local buffers < 4MB for
the registered POD types (char, s/u short, int, long, float, double,
Complex, FloatComplex) from this stack.

I think the 32MB size should at least be configurable, but I'm not
sure about the best way to do it. An environment variable, configure
switch, or sthing else?

regards

-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]