I'm observing a strange memory usage pattern with python strings on
Freebsd. Consider
the following session. Idea is to create a list which holds some
strings so that cumulative characters in the list is 100MB.
>>> l = []
>>> for i in xrange(10):
... l.append(str(i) * (1000/len(str(i
Thi
On Mar 17, 2011, at 7:43 AM, Amit Dev wrote:
> This is using 165MB of memory. I really don't understand where the
> additional memory usage is coming from. [Size of both lists are same]
>
> Python 2.6.4 on FreeBSD 7.2. On Linux and windows both uses around
> 100mb memory only.
It's possible that