[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: Fri, 16 Aug 2019 12:41:03 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

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

@jwe: I tested the preliminary patch for octave_value_list and it looks good. 
My benchmarking shows that it takes the runtime from 13.8 seconds to 11.7
seconds, or -21%.  I'm happy to say that I roughly nailed it when I said
changing to std::vector might bring about a 25% savings.  Still, if we could
figure out how to reduce the number of calls to octave_value_list for ordinary
evaluations that would help even more.

This looks so promising that I would immediately polish it up and commit it. 
Since you ran 'make check', I assume this didn't cause any regressions.

Once in Mercurial, I want to try a mini-optimization.  My guess is that the
size of octave_value_list objects is almost always 0 or 1.  If we change the
constructor to always reserve capacity for at least 1 object, do we get
another small speed boost?


Reply to this item at:


  Message sent via Savannah

reply via email to

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