From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Abhijeet More Newsgroups: gmane.lisp.guile.user Subject: Re: Possible Memory Leak with stream-for-each Date: Sat, 24 Jul 2010 12:46:16 -0400 Message-ID: References: <87iq44yi1q.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1279989991 9396 80.91.229.12 (24 Jul 2010 16:46:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Jul 2010 16:46:31 +0000 (UTC) Cc: guile-user@gnu.org To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jul 24 18:46:29 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ochrk-0007zI-Jf for guile-user@m.gmane.org; Sat, 24 Jul 2010 18:46:24 +0200 Original-Received: from localhost ([127.0.0.1]:54280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ochrk-0007LK-12 for guile-user@m.gmane.org; Sat, 24 Jul 2010 12:46:24 -0400 Original-Received: from [140.186.70.92] (port=48794 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ochrf-0007L5-6N for guile-user@gnu.org; Sat, 24 Jul 2010 12:46:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ochrd-00088D-TT for guile-user@gnu.org; Sat, 24 Jul 2010 12:46:19 -0400 Original-Received: from mail-qy0-f169.google.com ([209.85.216.169]:47857) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ochrd-000887-OU; Sat, 24 Jul 2010 12:46:17 -0400 Original-Received: by qyk9 with SMTP id 9so1044125qyk.0 for ; Sat, 24 Jul 2010 09:46:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=eGYIDTIUonskISHLiaekxuBQ6oCtAG5Qm1/J7lNwQSc=; b=bbWZsOMeWpDtOcCeouLo54NCz5XNisxSnjmtLHnV7yAthi95Y9J/n/X62nwtqpuI/E Ngj1kIk/zXs9BkfreEW5+7YJ0uiYY4rbuVI7Q/EhaB5a3jOYyuH26XpT7p5E1mgvqnoR oI+HopMFTf3NdTyj21o0L0aD0D9RmAYHVuwWc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=D/2K/JdtU2aood7zxWvqLSJSiN9eS+c0WRgasQjOXMb5S8RzufDmhCU/bjuTnrJppX 5ZcatmPIRT17fpUyIohSy0YjbLT/UbU6xSlc6NYc5GHknFG1kI3XSC4CQzOqISTGkB/m uYNjjQ5MW84MFFdx17sbSqIGJBN31P8pt31w8= Original-Received: by 10.224.26.3 with SMTP id b3mr4056935qac.2.1279989976879; Sat, 24 Jul 2010 09:46:16 -0700 (PDT) Original-Received: by 10.229.228.210 with HTTP; Sat, 24 Jul 2010 09:46:16 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8005 Archived-At: On Sat, Jul 24, 2010 at 12:32 PM, Abhijeet More wrote: > > I don't think so. The leak described in SRFI-45 is due to a naive > implementation of stream-filter on SICP-like streams (odd or even). > SRFI-45 describes a way to implement streams so that the leak does not > occur with the naive implementation of stream-filter. [snip] Now that I think about it though - it may be worth investigating whether the stream-for-each implementation causes a similar ever-growing sequence of pending-promises. I'll see if this is the case. The reason I feel strongly that this is not the problem is that the same implementation (including cons-stream) does *not* cause a leak with PLT Scheme/racket. Thanks Abhijeet