From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: map-file-lines Date: Mon, 02 Feb 2009 23:11:06 -0500 Message-ID: References: <86wsc87o3c.fsf@lifelogs.com> <86skmw7ig6.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233634292 15796 80.91.229.12 (3 Feb 2009 04:11:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 04:11:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 05:12:46 2009 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 1LUCeP-0001FN-Pb for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2009 05:12:42 +0100 Original-Received: from localhost ([127.0.0.1]:41084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUCd6-0007SH-R9 for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2009 23:11:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUCd1-0007Qw-Ec for emacs-devel@gnu.org; Mon, 02 Feb 2009 23:11:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUCcx-0007O7-KY for emacs-devel@gnu.org; Mon, 02 Feb 2009 23:11:14 -0500 Original-Received: from [199.232.76.173] (port=34980 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUCcx-0007O0-G7 for emacs-devel@gnu.org; Mon, 02 Feb 2009 23:11:11 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:20456 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUCcx-0003aq-8A for emacs-devel@gnu.org; Mon, 02 Feb 2009 23:11:11 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgMFAN9Sh0nO+IQk/2dsb2JhbACBbssvhBQGgmw X-IronPort-AV: E=Sophos;i="4.37,369,1231131600"; d="scan'208";a="33238403" Original-Received: from 206-248-132-36.dsl.teksavvy.com (HELO pastel.home) ([206.248.132.36]) by ironport2-out.teksavvy.com with ESMTP; 02 Feb 2009 23:11:06 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id BC88B8229; Mon, 2 Feb 2009 23:11:06 -0500 (EST) In-Reply-To: (Stefan Monnier's message of "Mon, 02 Feb 2009 17:40:37 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:108656 Archived-At: >> How is that better than insert-file-contents as I use it? > It processes just one chunk at a time, with no need to keep the whole > file in memory. A naive implementation could look like > (start-process "open-file-stream" nil "cat" file). Sorry, I misread. No it's not necessarily better. Stefan