Python performance

Chris Angelico rosuav at gmail.com
Fri Aug 2 08:57:55 EDT 2013


On Fri, Aug 2, 2013 at 1:00 PM, Schneider <js at 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



More information about the Python-list mailing list