octave-maintainers
[Top][All Lists]
Advanced

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

Re: C++ version of regexprep.cc


From: Bill Denney
Subject: Re: C++ version of regexprep.cc
Date: Mon, 1 May 2006 10:58:55 -0400 (EDT)

On Mon, 1 May 2006, David Bateman wrote:

octave:4> s = repmat('s',[1,3000]); tic; regexp(s,'s'); toc
Elapsed time is 7.145126 seconds.

prior to converting to using a linked list and with the attached version is

octave:4> s = repmat('s',[1,3000]); tic; regexp(s,'s'); toc
Elapsed time is 0.050476 seconds.

You seem to be excellent at optimization. Thanks very much for doing this.

Bill

--
"If far away things don't concern you, you'll soon mourn things close at
hand."
  -- Confucius, _The Analects_ Ch XV, 12 (Translated by David Hinton)



reply via email to

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