[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38460] Option 'stable' missing from unique()
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #38460] Option 'stable' missing from unique() |
Date: |
Thu, 07 Mar 2013 20:56:08 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0 |
Follow-up Comment #5, bug #38460 (project octave):
I just checked in a different way of verifying the arguments
(http://hg.savannah.gnu.org/hgweb/octave/rev/51b13fe45a94).
I hadn't really looked at this code until the check-in brought it to my
attention, but the original code before Julien wasn't very well written.
unique() was calling unique() recursively on it's own input arguments which is
slow. Also, ismember () is a relatively slow m-file compared to built-in
functions like strcmp() and any(). I re-coded and benchmarked and there was a
9.5% savings with my changes so I checked them in.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38460>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/