[Top][All Lists]

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

[Octave-bug-tracker] [bug #56752] Performance slowdown from version 3.2.

From: Rik
Subject: [Octave-bug-tracker] [bug #56752] Performance slowdown from version 3.2.4 through to current dev branch
Date: Sat, 17 Aug 2019 12:06:40 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #29, bug #56752 (project octave):

Yes, you're right.  C++ is a complicated language :(

I wrote my own test case as a .oct file 

#include <octave/oct.h>

DEFUN_DLD (tst_const, args, , "")
  octave_value_list tmp;

  // These are OK, they resize.
  octave_value x = tmp(2);
  const octave_value y = tmp(3);

  int nargin = args.length ();
  if (nargin > 0)
      const octave_value_list tmp (1, 2);

      // These fail, they don't resize and access beyond the end of the
      octave_value x = tmp(3);
      const octave_value y = tmp(4);

  return ovl ();

If the object is declared const then Octave shouldn't be silently increasing
the size of the array so I think the current behavior--segfault--is correct.


Reply to this item at:


  Message sent via Savannah

reply via email to

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