OCTAVE_LOCAL_BUFFER
Jaroslav Hajek
highegg at gmail.com
Fri Dec 12 05:57:44 CST 2008
On Sat, Dec 6, 2008 at 8:15 AM, Jaroslav Hajek <highegg at gmail.com> wrote:
> On Thu, Dec 4, 2008 at 6:25 PM, Jaroslav Hajek <highegg at gmail.com> 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
More information about the Octave-maintainers
mailing list