From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Why does not rgrep use "grep -r"? Date: Sat, 03 Nov 2007 12:37:47 +0900 Message-ID: <877il06ltg.fsf@catnip.gol.com> References: <472B99AB.3090705@gmail.com> <87ve8k8dyw.fsf@catnip.gol.com> <472BB921.20104@gmail.com> <87d4us6rnl.fsf@catnip.gol.com> <472BD29F.5090205@gmail.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194061094 16197 80.91.229.12 (3 Nov 2007 03:38:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Nov 2007 03:38:14 +0000 (UTC) Cc: Andreas Schwab , Emacs Devel To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 03 04:38:17 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Io9pw-0003hz-2E for ged-emacs-devel@m.gmane.org; Sat, 03 Nov 2007 04:38:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Io9pl-0003MP-Er for ged-emacs-devel@m.gmane.org; Fri, 02 Nov 2007 23:38:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Io9ph-0003Lw-1J for emacs-devel@gnu.org; Fri, 02 Nov 2007 23:38:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Io9pf-0003Kw-Bk for emacs-devel@gnu.org; Fri, 02 Nov 2007 23:38:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Io9pf-0003Ko-6B for emacs-devel@gnu.org; Fri, 02 Nov 2007 23:37:59 -0400 Original-Received: from smtp02.dentaku.gol.com ([203.216.5.72]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Io9pZ-0003pG-G3; Fri, 02 Nov 2007 23:37:53 -0400 Original-Received: from 203-216-97-240.dsl.gol.ne.jp ([203.216.97.240] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1Io9pW-00086u-Lv; Sat, 03 Nov 2007 12:37:50 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 8BF2C2F4C; Sat, 3 Nov 2007 12:37:48 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <472BD29F.5090205@gmail.com> (Lennart Borgman's message of "Sat\, 03 Nov 2007 02\:45\:03 +0100") Original-Lines: 15 X-Abuse-Complaints: abuse@gol.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82396 Archived-At: "Lennart Borgman (gmail)" writes: >> Neither method should use many processes unless the command-line >> arg limit is very short (though on windows, maybe that's the case...). > > I believed that grep had to be started many times. Is not that the case? xargs invokes grep in "batches," with as many filenames as will fit on the command line; for e.g. linux, that's many thousands at once, so process invocation overhead will tend to be in the noise compared to file I/O overhead. -Miles -- It wasn't the Exxon Valdez captain's driving that caused the Alaskan oil spill. It was yours. [Greenpeace advertisement, New York Times, 25 February 1990]