<br><br><div class="gmail_quote">On Fri, Mar 28, 2008 at 12:12 AM, Pavel &lt;<a href="mailto:pbastov@gmail.com">pbastov@gmail.com</a>&gt; 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, &nbsp;&lt;<a href="mailto:glyph@divmod.com">glyph@divmod.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &nbsp;On 03:57 am, <a href="mailto:pbastov@gmail.com">pbastov@gmail.com</a> wrote:<br>
&gt; &nbsp;&gt;Thanks for the replies.<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt;In fact, I just tried to compare it against the static files -- almost<br>
&gt; &nbsp;&gt;the same result --<br>
&gt; &nbsp;&gt;a little bit faster, but far from Apache :(<br>
&gt;<br>
&gt; &nbsp;Twisted is not, and has never been, as fast as Apache in this kind of<br>
&gt; &nbsp;naive raw-speed comparison on static files. &nbsp;It&#39;s probably not as fast<br>
&gt; &nbsp;for most other things either.<br>
&gt;<br>
&gt; &nbsp;If you would like to make it faster, there&#39;s no trick or configuration<br>
&gt; &nbsp;option or tweak. &nbsp;The solution is simple: optimize the code. &nbsp;This may<br>
&gt; &nbsp;just involve using a profiler and submitting patches, this may involve<br>
&gt; &nbsp;using some tool like cython or rpython to put the really critical parts<br>
&gt; &nbsp;into an extension module. &nbsp;Nobody else has volunteered to do this so far<br>
&gt; &nbsp;because Twisted is, in fact, fast enough for most things :).<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp;_______________________________________________<br>
&gt; &nbsp;Twisted-Python mailing list<br>
&gt; &nbsp;<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
&gt; &nbsp;<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
&gt;<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>