python memory use

Mensanator mensanator at aol.com
Wed Sep 30 13:17:43 EDT 2009


On Sep 30, 9:38 am, Gary Robinson <gary... at me.com> wrote:
> The chart athttp://shootout.alioth.debian.org/u32q/benchmark.php?test=all&lang=ja...is very interesting to me because it shows CPython using much less memory than Java for most tests.

Which version of Python? If you're talking 3.x for Windows, any memory
usage statistics are meaningless.


>
> I'd be interested in knowing whether anybody can share info about how representative those test results are. For instance, suppose we're talking about a huge dictionary that maps integers to lists of integers (something I use in my code). Would something like that really take up much more memory in Java (using the closest equivalent Java data structures) than in CPython? I find it hard to believe that that would be the case, but I'm quite curious.
>
> (I could test the particular case I mention, but I'm wondering if someone has some fundamental knowledge that would lead to a basic understanding.)
>
> --
>
> Gary Robinson
> CTO
> Emergent Music, LLC
> personal email: gary... at me.com
> work email: grobin... at flyfi.com
> Company:http://www.flyfi.com
> Blog:    http://www.garyrobinson.net




More information about the Python-list mailing list