Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11255

Re: String concatenation - which is the fastest way ?

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 <przemolicc@poczta.fm>
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> <CAPTjJmrF0GcVs0onfoCHAbMe38b5iLXgFX1R7G_RXcKxjPH5wQ@mail.gmail.com> <20110810133146.GE5045@host.pgf.com.pl> <j1ub3q$65c$1@dough.gmane.org> <20110811064030.GB4990@host.pgf.com.pl> <CAPTjJmqiiKcT7Zg-XkbrQ4r-keU9+1Kj=+sEwa4xp==2EG-5aQ@mail.gmail.com> <20110811134613.GE4990@host.pgf.com.pl> <mailman.2180.1313070526.1164.python-list@python.org> <d3373f34-6031-43c8-887d-de8a56a74709@g9g2000yqb.googlegroups.com>
MIME-Version 1.0
In-Reply-To <d3373f34-6031-43c8-887d-de8a56a74709@g9g2000yqb.googlegroups.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2205.1313133047.1164.python-list@python.org> (permalink)
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

Show key headers only | View raw


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 programming
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 it, 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: String concatenation - which is the fastest way ? Chris Angelico <rosuav@gmail.com> - 2011-08-11 14:48 +0100
  Re: String concatenation - which is the fastest way ? SigmundV <sigmundv@gmail.com> - 2011-08-11 14:38 -0700
    Re: String concatenation - which is the fastest way ? przemolicc@poczta.fm - 2011-08-12 09:10 +0200
      Re: String concatenation - which is the fastest way ? SigmundV <sigmundv@gmail.com> - 2011-08-12 09:09 -0700

csiph-web