|
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 isoctave: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)
[Prev in Thread] | Current Thread | [Next in Thread] |