Re: Comments merging, pass 2

Bill Mill <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
> Do you now how to write such a test regarding memory usage? I was
> thinking about how but wouldn't know where to start.
> 

The only way that I would know to measure memory would be to measure
the size of the python interpreter using 'top' on *nix or task manager
on windows.

Logically, though, "return (a and [b] or [c])[0]" has to be one
dictionary allocation larger than

if a: return b
else: return c

In the scheme of a program, that's going to be negligible, so I don't
know what about the memory allocation you want to test exactly.

Peace
Bill Mill
bill.mill at gmail.com


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.