[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58445] significant slow down in stable versio
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles |
Date: |
Tue, 26 May 2020 13:21:24 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #3, bug #58445 (project octave):
I'm pretty sure I caused the problem with this changeset:
http://hg.savannah.gnu.org/hgweb/octave/annotate/8bd9fd99c12a/libinterp/corefcn/cellfun.cc#l468
What does Matlab do if "numel" (for example) is a handle to a subfunction or
nested function? In that case, does it still call the built-in numel or does
it call the subfunction and (probably fail)? Here's an example:
function foo ()
x = {1, [2,3;4,5]};
%% Do both of the following do the same thing?
%% Do they call the built-in numel function for
%% each element of the cell array or do they call
%% the numel subfunction defined in this file?
cellfun ('numel', x)
cellfun (@numel, x)
end
function r = numel (x)
% subfunction
r = 13;
end
With an answer to the above, I can probably fix the problem.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58445>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58445] significant slow down in dev version for certain cellfun invocations, A.R. Burgers, 2020/05/25
- [Octave-bug-tracker] [bug #58445] significant slow down in dev version for certain cellfun invocations, Rik, 2020/05/26
- [Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles, Rik, 2020/05/26
- [Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles, Rik, 2020/05/26
- [Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles,
John W. Eaton <=
- [Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles, Rik, 2020/05/26
- [Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles, John W. Eaton, 2020/05/26
- [Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles, Philip Nienhuis, 2020/05/26
- [Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles, Rik, 2020/05/26
- [Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles, Philip Nienhuis, 2020/05/26
- [Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles, Rik, 2020/05/26
- [Octave-bug-tracker] [bug #58445] significant slow down in stable version for cellfun invocations which use function handles, John W. Eaton, 2020/05/27