[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: |
Sat, 13 Jun 2020 14:31:00 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #11, bug #58445 (project octave):
Updating the timings after the function handle refactoring. These times are
on the stable branch (6.0.90).
cellfun('numel'): 0.012671 secs
cellfun(@numel): 2.44392 secs
The function handle is still orders of magnitude slower, but it is also far
better than the 17.4 seconds before.
But, "numel" is one of the accelerated functions so it might be better to
compare to an unaccelerated function. I used the same benchmark from comment
#1 but substituted sum() for numel(). Results are
cellfun('sum'): 0.999322 secs
cellfun(@sum): 3.2546 secs
So, for some reason it is still 3X slower to use function handles rather than
strings.
_______________________________________________________
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 stable version for cellfun invocations which use function handles,
Rik <=