octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: slow char({str})


From: Daniel J Sebald
Subject: Re: slow char({str})
Date: Sun, 21 Jun 2009 19:32:07 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

Ben Abbott 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?

The hard part is locating a built-in function named "char".

Dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]