Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.033 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'memory.': 0.05; 'nested': 0.07; 'references,': 0.09; 'wrong,': 0.09; 'cc:addr:python-list': 0.10; '10x': 0.16; 'expect,': 0.16; 'subject:usage': 0.16; 'wrote:': 0.17; 'memory': 0.18; 'variable': 0.20; "i'd": 0.22; 'cheers,': 0.23; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'am,': 0.27; 'subject:per': 0.29; 'figure': 0.30; 'received:209.85.160.46': 0.32; 'know.': 0.33; "can't": 0.34; 'agree': 0.34; 'received:google.com': 0.34; 'received:209.85': 0.35; 'except': 0.36; 'but': 0.36; 'message- id:@gmail.com': 0.36; 'be.': 0.36; 'expensive': 0.36; 'limitation': 0.36; 'received:209': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'header:Received:5': 0.40; 'think': 0.40; 'first': 0.61; 'more': 0.63; 'results': 0.65; 'reporting,': 0.84; 'suspicion': 0.84; 'way...': 0.84; 'angel': 0.93; 'proposition': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=QX21HSynQ8eAUUis8bSkiVyXm/9kTto/AH4zLbL2Ozg=; b=Niui9A8a1FtgQQBnHipPCXy6jyEy9Bm5Gj8tLjeUbM/R98LeoC2vgv/iL6KYZeddeE nOalDPhEWMTWhh134C0Epk/R38YRzrWb0LqfHU6IJKV9JOSgmFol2w9esRqaGij+PWyH MOPGWR4l5ysFTZT90ulWly6oKQKgqig0yt/jaxdU5A5dCmWhkgDM9pT+h2ckGCiTC1j7 txZ+zvpWiX0fY6VOUp5CJ0vwlMNNIFNzrev16hefjZevxqjzaDxgzrl4Ku6CHnj0p760 tk4yHwODKLak6HhlbWxUASB/hqC/iDHKmamhlpPLWc7uW8lHiP4V1UcaQ6pRUqT8hKq9 oZAA== Date: Tue, 25 Sep 2012 14:02:56 -0700 From: Junkshops User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: d@davea.name Subject: Re: Memory usage per top 10x usage per heapy References: <983c532f-3ff6-4bd2-bb48-07cf4d065a4b@googlegroups.com> <5061056F.6080702@davea.name> <50613131.6030102@gmail.com> <50619035.3080106@davea.name> <5061EC34.5050009@gmail.com> <5061FCFB.3030900@davea.name> In-Reply-To: <5061FCFB.3030900@davea.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348606988 news.xs4all.nl 6872 [2001:888:2000:d::a6]:34539 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30127 On 9/25/2012 11:50 AM, Dave Angel wrote: > I suspect that heapy has some limitation in its reporting, and that's > what the discrepancy. That would be my first suspicion as well - except that heapy's results agree so well with what I expect, and I can't think of any reason I'd be using 10x more memory. If heapy is wrong, then I need to try and figure out what's using up all that memory some other way... but I don't know what that way might be. > ... can be an expensive proposition if you are building millions of > them. So can nested functions with non-local variable references, in > case you have any of those. Not as far as I know. Cheers, MrsEntity