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


Groups > comp.lang.python > #51829

Re: Python performance

References <51FB9F49.9040209@globe.de>
Date 2013-08-02 13:57 +0100
Subject Re: Python performance
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.135.1375492323.1251.python-list@python.org> (permalink)

Show all headers | 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