Possible memory leak in symbolic vectors

2 views
Skip to first unread message

Jiri Spitz

unread,
Jan 20, 2010, 3:56:08 PM1/20/10
to pure-lang
Hi Albert,

there might be a memory leak in symbolic vectors:

Repeating several times
#{(str x) => x | x = (1..100000)};
increases the used memory at each call. Similar task with dict consumes
memory at the first call and the memory size remains unchanged at
subsequent calls.

Jiri

Albert Graef

unread,
Jan 20, 2010, 5:20:33 PM1/20/10
to pure...@googlegroups.com

Yep, I can reproduce that. Same in Pure 0.40, so it's apparently an old
bug as well. I will see that I can still fix that in Pure 0.41, too.

Thanks for reporting,
Albert

--
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email: Dr.G...@t-online.de, a...@muwiinfa.geschichte.uni-mainz.de
WWW: http://www.musikinformatik.uni-mainz.de/ag

Albert Graef

unread,
Jan 21, 2010, 3:19:28 AM1/21/10
to pure...@googlegroups.com
Albert Graef wrote:
> Jiri Spitz wrote:
>> there might be a memory leak in symbolic vectors:
>>
>> Repeating several times
>> #{(str x) => x | x = (1..100000)};
>> increases the used memory at each call. Similar task with dict consumes
>> memory at the first call and the memory size remains unchanged at
>> subsequent calls.
>
> Yep, I can reproduce that. Same in Pure 0.40, so it's apparently an old
> bug as well. I will see that I can still fix that in Pure 0.41, too.

Fixed in r2959.

Reply all
Reply to author
Forward
0 new messages