bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: occur slower than grep by a longshot


From: Dan Jacobson
Subject: Re: occur slower than grep by a longshot
Date: 24 Nov 2001 08:35:24 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "E" == Eli Zaretskii <eliz@is.elta.co.il> writes:
>> Fellas, it's just so obvious,
>> the difference in speed between
>> (shell-command-on-region (region-beginning) (region-end) "grep /" nil nil 
>> nil)
>> and
>> (occur "/" nil) [<--slow]
>> on say a 20000 line ls-R ftp listing.

E> What's your point?  Isn't it obvious that a Lisp code run by an
E> interpreter would be slower than a tight optimized C program?

I dunno, maybe internally have the real grep to do the hard work, by
default, but keep the original occur code around for in case the user
does not have grep on their operating system?
-- 
http://www.geocities.com/jidanni/ Tel+886-4-25854780



reply via email to

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