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

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

[Octave-bug-tracker] [bug #58445] significant slow down in stable versio


From: Rik
Subject: [Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles
Date: Tue, 26 May 2020 17:00:00 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #7, bug #58445 (project octave):

@Philip: Wow, you found that old thread.  I only had a vague memory that this
had been discussed before.

@jwe: cacheing seems like a good solution.  Also, it is one of my pet peeves
that arrayfun() was programmed to parse its arguments and then hand off
execution to cellfun().  This results in a big slowdown because, for
arrayfun(), the function and the datatype are known upfront.  There is only
one signature that is ever needed, but by delegating to cellfun the code has
to assume that the data type might change for every value through the loop.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58445>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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