Re: memory leak with large-entry BeeStringDict?
Kingsley Turner <kingsley.turner-jEoFCcbHCOSJLVpJL2nGXleTHsez0gnBQQ4Iyu8u01E@public.gmane.org> Wed, 25 May 2016 08:16:17 +1000
| Newsgroups | gmane.comp.python.egenix.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============61718320272175742==
Content-Type: multipart/alternative;
boundary="------------030803090500000506020505"
This is a multi-part message in MIME format.
--------------030803090500000506020505
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable
On 20/05/16 20:00, Rachel Melamed wrote:
> Hello,
> I am using a BeeStringDict to store data with about 4000 keys, but the =
values can range up to list of 3 million floats. When I try to loop thro=
ugh the key-value pairs, it=92s clear that there is a memory leak.
> Please let me know if you have any suggestions.
Have you tried using a numpy array for the "list of 3 million floats" ?
Can you please explain why you think there is a memory leak.
Maybe reading this would help:=20
http://chase-seibert.github.io/blog/2013/08/03/diagnosing-memory-leaks-py=
thon.html
It has a few suggestions towards the end.
What OS are you running on ?
cheers,
-kt
--=20
*Kingsley Turner*
/Software Architect/
Open Field Communications
(An Endress+Hauser Company)
PO Box 426
AUSTRALIA 2264
E-Mail: kingsley.turner-jEoFCcbHCOSJLVpJL2nGXleTHsez0gnBQQ4Iyu8u01E@public.gmane.org=20
<mailto:kingsley.turner-jEoFCcbHCOSJLVpJL2nGXleTHsez0gnBQQ4Iyu8u01E@public.gmane.org>
Web: OpenFieldCommunications.com=20
<http://www.openfieldcommunications.com/Web2/home.html>
--------------030803090500000506020505
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta content=3D"text/html; charset=3Dwindows-1252"
http-equiv=3D"Content-Type">
</head>
<body text=3D"#000000" bgcolor=3D"#FFFFFF">
<div class=3D"moz-cite-prefix">On 20/05/16 20:00, Rachel Melamed
wrote:<br>
</div>
<blockquote
cite=3D"mid:044EE336-D880-49A6-A9E0-579AF561C976-t4+EzPmVLfD2fBVCVOL8/[email protected]"
type=3D"cite">
<pre wrap=3D"">Hello,
I am using a BeeStringDict to store data with about 4000 keys, but the va=
lues can range up to list of 3 million floats. When I try to loop throug=
h the key-value pairs, it=92s clear that there is a memory leak.
Please let me know if you have any suggestions.
</pre>
</blockquote>
<br>
Have you tried using a numpy array for the "list of 3 million
floats" ?<br>
<br>
Can you please explain why you think there is a memory leak.<br>
<br>
Maybe reading this would help:
<a class=3D"moz-txt-link-freetext" href=3D"http://chase-seibert.github.io=
/blog/2013/08/03/diagnosing-memory-leaks-python.html">http://chase-seiber=
t.github.io/blog/2013/08/03/diagnosing-memory-leaks-python.html</a><br>
It has a few suggestions towards the end.<br>
<br>
What OS are you running on ?<br>
<br>
cheers,<br>
-kt<br>
<br>
<div class=3D"moz-signature">-- <br>
<style type=3D"text/css">=20
<!--=20
b { font-size:medium; color:#DAA520; font-family:arial; font-weig=
ht:bold }=20
i { font-size:small; color:black; font-style:oblique; font-family=
:arial; }
p.address { font-family:arial; color:black; font-size:x-small; pa=
dding-bottom:0cm }
table { border-width:0cm; padding-top:0cm; border-spacing:0.01cm;=
caption-side:bottom }
td {border-width:0cm; color:black; font-family:arial; font-size:x=
-small; padding-left:0cm; padding-right:0.1cm; padding-top:0.01cm; paddin=
g-bottom:0.05cm }
a { color:#191970; }
-->=20
</style> <b>Kingsley Turner</b><br>
<i>Software Architect</i><br>
<p class=3D"address"> Open Field Communications<br>
(An Endress+Hauser Company)<br>
PO Box 426<br>
AUSTRALIA 2264</p>
<table>
<!-- Note: Lotus Notes can't handle "N%" width columns properly -=
->
<!-- <tr><td width=3D"50">Phone: </td> <td>+41 61 71=
5 74 04 (UTC+1)</td></tr>
<tr><td width=3D"50">Fax: </td> <td>+41 61 715 73 01</td>=
</tr> -->
<tbody>
<tr>
<td width=3D"50">E-Mail:=A0</td>
<td><a
href=3D"mailto:kingsley.turner-jEoFCcbHCOSJLVpJL2nGXleTHsez0gnBiMEWR6Nv5iY@public.gmane.org=
m"><a class=3D"moz-txt-link-abbreviated" href=3D"mailto:kingsley.turner@o=
penfieldcommunications.com">kingsley.turner-jEoFCcbHCOSJLVpJL2nGXleTHsez0gnBQQ4Iyu8u01E@public.gmane.org</=
a></a></td>
</tr>
<tr>
<td width=3D"50">Web:=A0</td>
<td><a
href=3D"http://www.openfieldcommunications.com/Web2/home.=
html">OpenFieldCommunications.com</a></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
--------------030803090500000506020505--
--===============61718320272175742==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
_______________________________________________________________________
eGenix.com User Mailing List http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users
--===============61718320272175742==--