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

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

[Octave-bug-tracker] [bug #52809] interpreter performance is slow on dev


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #52809] interpreter performance is slow on development branch
Date: Thu, 4 Jan 2018 20:16:08 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #5, bug #52809 (project octave):

I'm pretty sure that a significant portion of this problem is caused by always
creating an octave_value_list object even when only one value is requested or
produced.  In the past, we had two methods for computing values, rvalue
(produce an octave_value_list) and rvalue1 (produce a single octave_value
object).  The binary expression evaluator used rvalue1 to compute values from
the operand expressions.  But when I refactored the evaluator I changed the
expression evaluation methods to always generate an octave value list even
when only one value is needed.  So in those cases, we are creating an
octave_value_list object with one value, pushing it on a stack, and then
extracting it.  I'm sure even I can do better than that now that I see it's
likely an issue...


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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