octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #50603] save -mat fails for large (# of bytes)


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #50603] save -mat fails for large (# of bytes) variables
Date: Wed, 22 Mar 2017 14:58:22 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #6, bug #50603 (project octave):

Yes, roughly the stream buffer (z_stream) is more memory efficient.  It looks
something like


deflateInit((z_streamp strm, int level));
while (memory_left) {
    <point to new memory or copy memory to some known small buff>
    deflate((z_streamp strm, int flush));
}
deflateEnd((z_streamp strm));


and the size of the small buffer is indicated to the deflate() routine via the
z_stream structure that is pointed to, in element "avail_in".  deflate() must
keep an internal state between calls to it so that new output data can be
generated when adequate input data comes along...probably random just when
that is the case depending on compression behavior.  Then deflateEnd must look
at the state, what data remains, then wrap things up as far as remaining
compressed data goes.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50603>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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