Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed1a.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.086 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.00; 'programmer': 0.03; 'boundaries': 0.09; 'cc:addr:python-list': 0.11; 'figure,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'materially': 0.16; 'roy': 0.16; 'weird': 0.16; 'wrote:': 0.18; '(where': 0.19; 'basically': 0.19; 'coding': 0.22; 'cc:addr:python.org': 0.22; 'certainly': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'usually': 0.31; '20%': 0.31; 'up.': 0.33; 'programmers': 0.33; 'amazon': 0.34; 'moment': 0.34; 'maybe': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'ram': 0.36; 'doing': 0.36; 'whatever': 0.38; 'pm,': 0.38; 'resource': 0.38; 'bad': 0.39; 'cost.': 0.60; 'is.': 0.60; 'hardware': 0.61; 'matter': 0.61; "you're": 0.61; 'within': 0.65; 'worth': 0.66; 'smith': 0.68; 'cut': 0.74; 'increasing': 0.74; 'special': 0.74; 'everything,': 0.84; 'trade,': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=U0rs0ffH85ccPyIC4GLHn/XCbbRNNISzYUaVWT3G9Rs=; b=bEsSU+bZq2fGA4jM/3MXeDUe6cikqGkKBcngfBw461H8J4cCvMqt7J4zxksVCUz/mr HCuR7u6v7UsN0rp96OprqJa5mQ8qW4m86fMdseCfpKuMtgrCaV4EDQfUCifB00i76l+j MC3d+h9ZnQkA9I8bFjYthK3YiZb0VM1Z15leQYUCkDOOhfhaKqGGmPuWhNtdwT287b/Q c3Wpc/8R+yQhyjbDgCc/yeucUODpl3lsFxNld0dzrKiVJDhunQQiaB0mYE3NjvsTE9qN N1+1OTiZYx76w6g5PMWVNqwLwiUHZxvZ9JcQsAnJCrD9UmhleSq8SRK+x+CgJOhWvxm+ EB/g== MIME-Version: 1.0 X-Received: by 10.68.248.7 with SMTP id yi7mr4615893pbc.31.1396963385189; Tue, 08 Apr 2014 06:23:05 -0700 (PDT) In-Reply-To: References: <87d2gt4td2.fsf@elektro.pacujo.net> <7xha651yx2.fsf@ruckus.brouhaha.com> Date: Tue, 8 Apr 2014 23:23:05 +1000 Subject: Re: threading From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396963393 news.xs4all.nl 2902 [2001:888:2000:d::a6]:48684 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69860 On Tue, Apr 8, 2014 at 11:13 PM, Roy Smith wrote: > And the cost of hardware keeps going down, while the cost of > good programmers keeps going up. Like everything, it's a matter of trade-offs. Spending a moment thinking about what you're doing before you do it might cut your RAM usage by 20% without materially increasing your programmer time cost. But coding everything in C "for efficiency" is almost certainly a bad trade, for the reason quoted. There can be special boundaries in resource consumption. Fitting something inside an Amazon Micro instance might be important for you, in which case you get just 613 MB of RAM (a weird figure, I know). Or maybe you need to stay within 8GB so you can allocate the other 8GB to the database. Or whatever it is. But any time it's flexible (where you basically just pay twice as much to get twice as much), it's usually worth going as far as you can. ChrisA