[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: slow char({str})
From: |
Jaroslav Hajek |
Subject: |
Re: slow char({str}) |
Date: |
Mon, 22 Jun 2009 09:01:21 +0200 |
On Sun, Jun 21, 2009 at 7:33 PM, Ben Abbott<address@hidden> wrote:
> I noticed a substantial amount of time is needed to convert a cell string
> into a string
>
> octave:50> tic; char ({repmat("a", [1, 100000])}); toc
> Elapsed time is 11.9 seconds.
>
> but ...
>
> octave:51> tic; char ({repmat("a", [1, 100000])}{1}); toc
> Elapsed time is 0.001117 seconds.
>
> Can someone with skilled in c++ take a look?
>
> Ben
>
Please check
http://hg.savannah.gnu.org/hgweb/octave/rev/4ff6f8efdda2
also transplanted into 3.2.x.
thanks
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz