<br><br><div class="gmail_quote">On Jan 17, 2008 4:54 PM, Eduardo Matus &lt;<a href="mailto:ematus@gmail.com">ematus@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;">
hey.. the code is to.... dirty.. but look this...<br><br>reactor.callLater(3,f)<br><br>for x in range(100000000000000): # for example... a big time-consumption<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #do something<br>reactor.callLater(3,g)<br><br>the &#39;g&#39; method will not start at the same time of &#39;f&#39;
<br></blockquote><div><br><br>You would want to schedule your calls before doing CPU-intensive work.&nbsp; And you don&#39;t want to do CPU-intensive work in the same thread as the reactor anyways because this is equivalent to blocking.&nbsp; Consider putting whatever takes a lot of time in a separate process or a in a thread pool via deferToThread.
<br>&nbsp;</div></div>-- <br>\\\\\/\&quot;/\\\\\\\\\\\<br>\\\\/ // //\/\\\\\\\<br>\\\/ &nbsp;\\// /\ \/\\\\<br>\\/ /\/ / /\/ /\ \\\<br>\/ / /\/ /\ &nbsp;/\\\ \\<br>/ /\\\ &nbsp;/\\\ \\\\\/\<br>\/\\\\\/\\\\\/\\\\\\<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d.p.s