[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #31709] simple routine which runs 20 times slo
From: |
kody law |
Subject: |
[Octave-bug-tracker] [bug #31709] simple routine which runs 20 times slower on octave vs. matlab! |
Date: |
Fri, 19 Nov 2010 22:52:14 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 |
URL:
<http://savannah.gnu.org/bugs/?31709>
Summary: simple routine which runs 20 times slower on octave
vs. matlab!
Project: GNU Octave
Submitted by: kodo
Submitted on: Fri 19 Nov 2010 10:52:14 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.3
Operating System: Mac OS
_______________________________________________________
Details:
The peculiarity is attached. Any suggestions about how to speed it up would
be greatly appreciated. Thanks a lot for all your help!
A takes about 2.5 seconds on matlab, while B takes 2 seconds. On octave the
difference is more than an order of magnitude!
%%%% when A is uncommented and B is commented,
%%%% the routine takes 40 secs!
%%%% when B is uncommented and A is commented,
%%%% the routine takes 2 secs!
%%%% each time, the program sorts a permutation into
%%%% cycles, going through each element. 'lens' lists
%%%% the number of elements in permutations of each length
%%%% longer permutations =
%%%% fewer entries into while loop =
%%%% faster -- too much faster!
Thanks again, best
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 19 Nov 2010 10:52:14 PM GMT Name: per.tar Size: 103kB By: kodo
<http://savannah.gnu.org/bugs/download.php?file_id=22064>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31709>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #31709] simple routine which runs 20 times slower on octave vs. matlab!,
kody law <=
- [Octave-bug-tracker] [bug #31709] simple routine which runs 20 times slower on octave vs. matlab!, Rik, 2010/11/20
- [Octave-bug-tracker] [bug #31709] simple routine which runs 20 times slower on octave vs. matlab!, kody law, 2010/11/20
- [Octave-bug-tracker] [bug #31709] simple routine which runs 20 times slower on octave vs. matlab!, Søren Hauberg, 2010/11/20
- [Octave-bug-tracker] [bug #31709] simple routine which runs 20 times slower on octave vs. matlab!, kody law, 2010/11/20
- [Octave-bug-tracker] [bug #31709] simple routine which runs 20 times slower on octave vs. matlab!, Søren Hauberg, 2010/11/21
- [Octave-bug-tracker] [bug #31709] simple routine which runs 20 times slower on octave vs. matlab!, kody law, 2010/11/21
- [Octave-bug-tracker] [bug #31709] simple routine which runs 20 times slower on octave vs. matlab!, Rik, 2010/11/21
- [Octave-bug-tracker] [bug #31709] simple routine which runs 20 times slower on octave vs. matlab!, kody law, 2010/11/21