<br><br><div class="gmail_quote">On Fri, Mar 28, 2008 at 12:12 AM, Pavel <<a href="mailto:pbastov@gmail.com">pbastov@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes, I see what you mean.<br>
<br>
I really love Twisted, and will never switch to Apache or the like, since I like<br>
its simplicity and the ability to have all my code in one place.</blockquote><div><br>Forgive me if the following is not what you are looking<br>for but, I would recommend a setup like this:<br><br>Use a fast and light server/reverse proxy<br>
like nginx ( <a href="http://wiki.codemongers.com/Main">http://wiki.codemongers.com/Main</a> ) to<br><br>1) handle all static files (img,js,css, static html)<br>2) reverse proxy all your dynamic twisted.web part<br><br>I use this setup, and it works great with Twisted.<br>
<br>-Alex<br><br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<div><div></div><div class="Wj3C7c"><br>
On Fri, Mar 28, 2008 at 12:27 PM, <<a href="mailto:glyph@divmod.com">glyph@divmod.com</a>> wrote:<br>
><br>
> On 03:57 am, <a href="mailto:pbastov@gmail.com">pbastov@gmail.com</a> wrote:<br>
> >Thanks for the replies.<br>
> ><br>
> >In fact, I just tried to compare it against the static files -- almost<br>
> >the same result --<br>
> >a little bit faster, but far from Apache :(<br>
><br>
> Twisted is not, and has never been, as fast as Apache in this kind of<br>
> naive raw-speed comparison on static files. It's probably not as fast<br>
> for most other things either.<br>
><br>
> If you would like to make it faster, there's no trick or configuration<br>
> option or tweak. The solution is simple: optimize the code. This may<br>
> just involve using a profiler and submitting patches, this may involve<br>
> using some tool like cython or rpython to put the really critical parts<br>
> into an extension module. Nobody else has volunteered to do this so far<br>
> because Twisted is, in fact, fast enough for most things :).<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Twisted-Python mailing list<br>
> <a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
> <a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
><br>
<br>
<br>
<br>
</div></div><div class="Ih2E3d">--<br>
Good luck,<br>
<br>
Pavel Bastov<br>
xooChat Team Leader<br>
<a href="http://www.xoochat.com/" target="_blank">http://www.xoochat.com/</a><br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="Wj3C7c">Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br>