From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: streams are cool, you could stream virtually anything! Date: Wed, 04 Nov 2015 10:50:30 -0500 Message-ID: References: <87ziyuaqhl.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446654977 28123 80.91.229.3 (4 Nov 2015 16:36:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Nov 2015 16:36:17 +0000 (UTC) Cc: Damien Cassou , emacs-devel To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 04 17:36:14 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zu12i-0007Oy-Eo for ged-emacs-devel@m.gmane.org; Wed, 04 Nov 2015 17:36:12 +0100 Original-Received: from localhost ([::1]:55793 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu12h-0008BS-Q2 for ged-emacs-devel@m.gmane.org; Wed, 04 Nov 2015 11:36:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu0rF-00056s-G3 for emacs-devel@gnu.org; Wed, 04 Nov 2015 11:24:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zu0rD-0003Yo-Tm for emacs-devel@gnu.org; Wed, 04 Nov 2015 11:24:21 -0500 Original-Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:36419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu0rD-0003Yk-QI for emacs-devel@gnu.org; Wed, 04 Nov 2015 11:24:19 -0500 Original-Received: by qkcl124 with SMTP id l124so21859355qkc.3 for ; Wed, 04 Nov 2015 08:24:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version:content-type; bh=VdMaXTec/9h5MFymwFQ9P/Gg2iMHreuHCCP62tSkonM=; b=MFtTQRZis9owk7YdLt+XJunQXTysksmF4uDSHd//hZZlhSr7mD9g9+APWlLKhQaefj jBFiLcunzTvmbiPydQf5nysJtVPO/NzF9FrFtJLnlKM1U11G5UOIt68ggOOp++7oP+Uu DDlklzuQakB+8mDVglCLdh093ojdxS9ibL4k6oHc87APIUh0fF/UL1ilpuARlElBn/KW H+0Sck3zbRWPSgRszUg9qnTCw8pBKs8Grv4SHyEtPvdqGQWSqEjYprJZhv/9Y9MAZWXU xL5mGzTKw5BNA2hEcw98X9udRHuoCPiwHb3cuTIS6s44k9wMjWT6oEfjoKoPGZEx6tLF 49mw== X-Received: by 10.55.72.85 with SMTP id v82mr2477807qka.3.1446654259534; Wed, 04 Nov 2015 08:24:19 -0800 (PST) Original-Received: from Hermes-2.local (74.sub-70-192-3.myvzw.com. [70.192.3.74]) by smtp.gmail.com with ESMTPSA id c190sm505534qkb.27.2015.11.04.08.24.16 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Nov 2015 08:24:16 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Hermes-2.local (Postfix, from userid 501) id 5486248DE53C; Wed, 4 Nov 2015 11:24:15 -0500 (EST) In-Reply-To: <87ziyuaqhl.fsf@petton.fr> (Nicolas Petton's message of "Wed, 04 Nov 2015 13:39:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Mail-Followup-To: Nicolas Petton , emacs-devel , Damien Cassou X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c09::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:193210 Archived-At: >>>>> Nicolas Petton writes: > I just added a function `stream-regexp' to stream.el to stream the search of > a regexp in a buffer: This is amazing, Nicolas! I've wanted this exact construction so many times! Do you know the memory behavior of doing it this way? That is, for 1000 hits, how does the number of cons's allocated compare to the iterative approach? John