Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder.news-service.com!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.043 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'processing.': 0.03; 'sysadmin': 0.04; ':-)': 0.06; 'python': 0.08; 'tuning': 0.09; ';-)': 0.12; 'developer': 0.12; '(among': 0.16; 'boring': 0.16; 'cores': 0.16; 'operations?': 0.16; 'written': 0.16; 'wrote:': 0.16; "wouldn't": 0.17; 'developer,': 0.18; 'programming': 0.20; 'header:In-Reply-To:1': 0.22; 'aug': 0.24; 'says': 0.25; 'string': 0.26; "i'm": 0.27; 'thu,': 0.28; 'server': 0.29; "he's": 0.29; 'oracle': 0.29; '(and': 0.29; 'operations': 0.30; 'optimal': 0.30; 'developers': 0.32; 'it.': 0.33; 'to:addr:python-list': 0.33; '...': 0.34; 'header:User-Agent:1': 0.34; '(as': 0.34; 'spent': 0.34; 'keen': 0.34; 'subject: ?': 0.34; 'rather': 0.35; 'problem.': 0.36; 'explain': 0.36; 'question': 0.36; 'another': 0.37; 'thread': 0.37; 'but': 0.37; 'something': 0.37; 'think': 0.38; 'some': 0.38; 'subject:: ': 0.39; 'tasks': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; 'background': 0.40; 'processing': 0.40; 'more': 0.60; 'love': 0.62; 'back': 0.62; 'our': 0.63; 'from:no real name:2**0': 0.63; 'natural': 0.65; 'charset:iso-8859-2': 0.66; 'it)': 0.67; '11,': 0.68; 'saw': 0.69; 'header:Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.71; 'received:pl': 0.84; 'nas': 0.84; 'now...': 0.84; 'many,': 0.93; 'url:pl': 0.93 Date: Fri, 12 Aug 2011 09:10:42 +0200 From: przemolicc@poczta.fm To: python-list@python.org Subject: Re: String concatenation - which is the fastest way ? References: <20110810111754.GD5045@host.pgf.com.pl> <20110810133146.GE5045@host.pgf.com.pl> <20110811064030.GB4990@host.pgf.com.pl> <20110811134613.GE4990@host.pgf.com.pl> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Interia-Antivirus: OK X-EMID: 6dc0fc98 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: przemolicc@poczta.fm 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: 82 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313133047 news.xs4all.nl 23980 [2001:888:2000:d::a6]:51165 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11255 On Thu, Aug 11, 2011 at 02:38:32PM -0700, SigmundV wrote: > When I saw the headline I thought "oh no, not string concatenation > again... we have had scores of these thread before...", but this is a > rather interesting problem. The OP says he's not a database > developer, but why is he then fiddling with internal database > operations? Wouldn't it be better to go back to the database > developers and have them look into parallel processing. I'm sure that > Oracle databases can do parallel processing by now... :-) Good question but I try to explain what motivates me to do it. First reason (I think the most important :-) ) is that I want to learn something new - I am new to python (I am unix/storage sysadmin but with pro= gramming background so python was a natural choice for more complicated sysadmin tasks). Another reason is that our server (and I am responsible for it) has many, many but slow cores (as I had written before). It means that parallelization of operations is obvious - the developer is not keen to spent much time on it (she is busy) - and for me this is something new (among some boring daily tasks ... ;-) ) and fresh :-) Another intention is to get some more knowledge about parallelization: how to divide some task into subtasks, what is the most optimal way to do i= t, etc And the last reason is that I love performance tuning :-) Regards Przemyslaw Bak (przemol) ---------------------------------------------------------------- Zmyslowa bielizna? U nas ja znajdziesz! http://linkint.pl/f29fe