emacs-devel
[Top][All Lists]
Advanced

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

Re: uniq


From: Stefan Monnier
Subject: Re: uniq
Date: Sat, 04 Dec 2010 09:09:03 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Would it be faster to avoid nested while-loops?

Not sure if `member' is faster than `re-search-forward', but if you
replace re-search-forward with just search-forward (which requires
a bit more care since you need to manually check that matches are
anchored at bol and eol) I'm pretty sure that'll be even faster since it
will then use a more efficient search algorithm that gets faster the
longer the line of text you're looking for.


        Stefan



reply via email to

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