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

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

[Octave-bug-tracker] [bug #42118] COW memory issues when extracting smal


From: Michael Goffioul
Subject: [Octave-bug-tracker] [bug #42118] COW memory issues when extracting small slices from large arrays
Date: Mon, 02 Feb 2015 16:11:39 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36

Follow-up Comment #4, bug #42118 (project octave):

This requires some good thinking, but I think one possible approach is to
check when the refcount of the underlying Array object reaches 1 and in that
case optimize the memory used by the object.

For instance:
if (slice_data != rep->data || slice_len != rep->len)
  do_optimize_memory ();

But I'm not sure this is technically do-able...


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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