Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: HOWTO: Accelerate processing algorithm
Date: Sun, 5 Jul 2009 12:41:01 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 13
Message-ID: <h2q70t$1bl$1@fred.mathworks.com>
References: <h2q435$r64$1@fred.mathworks.com> <9281730.75571.1246796996212.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1246797661 1397 172.30.248.37 (5 Jul 2009 12:41:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 5 Jul 2009 12:41:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:552878


Jose Antonio <juriguen@gmail.com> wrote in message <9281730.75571.1246796996212.JavaMail.jakarta@nitrogen.mathforum.org>...
> Thanks a lot!
> 
> Apparently it works fine :) I had another error in the code, so I haven't been able to check all the results yet.
> 
> I have seen the improvement is from around 35s to 6s, to it's great. However, do you know if it could be even faster implementing the operation in C?
> 

To whom you ask this question? Me or Rune?

If it's to me, my opinion is not bother with MEX. Using ACCUMARRAY, you can remove even the SORT command, and the code pretty much comes down to few basic commands that would be hard for MEX to beat it by much.

Bruno