Skip Menu |

This queue is for tickets about the List-MoreUtils CPAN distribution.

Report information
The Basics
Id: 57499
Status: resolved
Priority: 0/
Queue: List-MoreUtils

People
Owner: Nobody in particular
Requestors: benjamin.heintz [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: leaks in pairwise (XS only, pure perl OK)
Date: Fri, 14 May 2010 17:45:48 -0500
To: bug-List-MoreUtils [...] rt.cpan.org
From: Benjamin Heintz <benjamin.heintz [...] gmail.com>
Hello, The XS implementation of List::MoreUtils::pairwise appears to leak memory, while the pure perl implementation seems OK. Module info: List::MoreUtils v0.22 Perl version info: This is perl, v5.10.1 built for MSWin32-x86-multi-thread (with 2 registered patches, see perl -V for more detail) Copyright 1987-2009, Larry Wall Binary build 1006 [291086] provided by ActiveState http://www.ActiveState.com Built Aug 24 2009 13:48:26 OS info: MINGW32_NT-5.2 TWS-20 1.0.12(0.46/3/2) 2010-02-05 01:08 i686 unknown Problem: Memory usage for this script increases with time when %ENV{LIST_MOREUTILS_PP} is 0, remains constant when that value is 1. #! perl use List::MoreUtils qw( pairwise ); my @left = (1..100); my @right = (101..200); pairwise { $a, $b } @left, @right while 1; __END__ Please let me know if you need any more information. Thank you! -Ben
From: benjamin.heintz [...] gmail.com
On Fri May 14 18:46:05 2010, benjamin.heintz@gmail.com wrote: Show quoted text
> Hello, > > The XS implementation of List::MoreUtils::pairwise appears to leak memory, > while the pure perl implementation seems OK. > > Module info: > List::MoreUtils v0.22 > > Perl version info: > This is perl, v5.10.1 built for MSWin32-x86-multi-thread > (with 2 registered patches, see perl -V for more detail) > > Copyright 1987-2009, Larry Wall > > Binary build 1006 [291086] provided by ActiveState > http://www.ActiveState.com > Built Aug 24 2009 13:48:26 > > OS info: > MINGW32_NT-5.2 TWS-20 1.0.12(0.46/3/2) 2010-02-05 01:08 i686 unknown > > Problem: > Memory usage for this script increases with time when > %ENV{LIST_MOREUTILS_PP} is 0, remains constant when that value is 1. > > #! perl > > use List::MoreUtils qw( pairwise ); > > my @left = (1..100); > my @right = (101..200); > > pairwise { $a, $b } @left, @right while 1; > > __END__ > > Please let me know if you need any more information. Thank you! > > -Ben
( typo - that should have read $ENV{LIST_MOREUTILS_PP} )
From: bitcard [...] froods.org
You may want to check if 0.25_02 resolves your issue, as a leak in pairwise has been fixed in that version. On Sun May 16 09:59:01 2010, benjamin.heintz@gmail.com wrote: Show quoted text
> > The XS implementation of List::MoreUtils::pairwise appears to leak
memory, Show quoted text
> > while the pure perl implementation seems OK. > > > > Module info: > > List::MoreUtils v0.22