On Tue, Jun 12, 2012 at 8:36 PM, Gilles <nos...@nospam.com> wrote: > Thanks for the input. > > But I read that PHP-based heavy-duty web servers compile the scripts > once and keep them in a cache, so they don't have to be > read/parsed/executed with each new query. > > In that case, what is the benefit of using a long-running process in > Python?
Apache's mod_php partially evens out the difference, but not completely, and of course, it's perfectly possible to write a dispatch loop in PHP, as Octavian said. Python is a far better language than PHP, I would strongly recommend making use of it if you can. ChrisA -- http://mail.python.org/mailman/listinfo/python-list