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


Groups > comp.lang.python > #51829

Re: Python performance

Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.211
X-Spam-Level **
X-Spam-Evidence '*H*': 0.58; '*S*': 0.01; 'subject:Python': 0.06; 'second.': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mean,': 0.16; 'wrote:': 0.18; '(in': 0.22; 'aug': 0.22; 'fairly': 0.24; 'script': 0.25; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'rest': 0.29; 'possibility': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; '(which': 0.31; 'fri,': 0.33; "i'd": 0.34; 'problem': 0.35; 'basic': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'done': 0.36; 'should': 0.36; 'handle': 0.38; 'to:addr:python-list': 0.38; 'list,': 0.38; 'pm,': 0.38; 'does': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'how': 0.40; 'hardware': 0.61; 'course': 0.61; "you're": 0.61; "you'll": 0.62; 'day.': 0.63; 'networking': 0.64; '2000': 0.65; 'services': 0.66; 'hour': 0.70; 'day': 0.76; '1:00': 0.84; 'all;': 0.84; "everything's": 0.84; 'mails': 0.89; '2013': 0.98
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:to :content-type; bh=2jBGxyAsIl7FOcC+IzM24LZLdaxM4Ocy8p5d7fjxBqQ=; b=eDizGBjzFDp38XPKwg+OJQ296EHmWVrZV9dMowTWlY4tOwd5H4RIR/X0wJNqMidS9G IVfY+sq3nHbM3K3rM1JVIqVduASRI0OjpUnqrVBqwnXXCIz6Cq0qSCornQOMdw+fMgaL afFtH3k52FuIrEtrJ5Ys2JkdzZEi7n2qeoU9aIYBpDOdeNE1PmncAZJ5otTcXnmUCJJ0 Spp3x/oRNalmhR6cNMRhSjDH+vXrbjZmMGTSe8oncbYVRB/0lA8aAC8IG/uxuFYAYupF M86sdaa7gzAJEdc+iTxvGf346aQWO+jI6VhhkRLRKi5tq1rfpaYJvWmvLqpVvghrIein G4Jg==
MIME-Version 1.0
X-Received by 10.59.9.69 with SMTP id dq5mr1904712ved.87.1375448275315; Fri, 02 Aug 2013 05:57:55 -0700 (PDT)
In-Reply-To <51FB9F49.9040209@globe.de>
References <51FB9F49.9040209@globe.de>
Date Fri, 2 Aug 2013 13:57:55 +0100
Subject Re: Python performance
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-Mailman-Approved-At Sat, 03 Aug 2013 03:12:02 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
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.135.1375492323.1251.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1375492323 news.xs4all.nl 15892 [2001:888:2000:d::a6]:55134
X-Complaints-To abuse@xs4all.nl
Path csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Xref csiph.com comp.lang.python:51829

Show key headers only | View raw


On Fri, Aug 2, 2013 at 1:00 PM, Schneider <js@globe.de> wrote:
> Hi list,
>
> I have to write a small SMTP-Relay script (+ some statistic infos) and I'm
> wondering, if this
> can be done in python (in terms of performance, of course not in terms of
> possibility ;) ).
>
> It has to handle around 2000 mails per hour for at least 8hours a day (which
> does not mean, that it is allowed not to respond the rest of the day.

2000 an hour is less than one a second. I don't know how much hardware
you're going to devote to this or how many other services are going to
be on the same computer, but you should be able to do that no problem
at all; basic statisticking isn't difficult. The slowest part is
likely to be networking (esp if you have to do DNS lookups), so you'll
want to make sure everything's done asynchronously - either with
threads or with async queries and so on. I'd say this will be fairly
easy.

ChrisA

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


Thread

Re: Python performance Chris Angelico <rosuav@gmail.com> - 2013-08-02 13:57 +0100

csiph-web