Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!hq-usenetpeers.eweka.nl!81.171.88.15.MISMATCH!eweka.nl!lightspeed.eweka.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'derived': 0.09; 'ignoring': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sep': 0.09; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:usage': 0.16; 'mon,': 0.16; 'all,': 0.21; 'header:X -Complaints-To:1': 0.28; 'subject:per': 0.29; "i'm": 0.29; 'code': 0.31; 'file': 0.32; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'minimum': 0.34; 'received:org': 0.36; 'data.': 0.36; 'charset:us- ascii': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'times': 0.63; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Memory usage per top 10x usage per heapy Date: Tue, 25 Sep 2012 00:41:25 -0400 Organization: > Bestiaria Support Staff < References: <983c532f-3ff6-4bd2-bb48-07cf4d065a4b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-253-103-108.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348548084 news.xs4all.nl 6840 [2001:888:2000:d::a6]:58662 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30009 On Mon, 24 Sep 2012 14:59:47 -0700 (PDT), MrsEntity declaimed the following in gmane.comp.python.general: > Hi all, > > I'm working on some code that parses a 500kb, 2M line file line by line and saves, per line, some derived strings Pardon? A 2million line file will contain, at the minimum 2million line-end characters. That four times 500kB just in the line-ends, ignoring any data. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/