<div dir="ltr">the time output does looks like you have higher cpu usage for some reason, so i agree with Shachar on this.<br><br>you can also try to pinpoint the place the cpu is spent.<br>strace and/or ltrace with the '-f -c' flags can help.<br>
<br><br><br><div class="gmail_quote">On Tue, Sep 8, 2009 at 5:24 PM, Shachar Shemesh <span dir="ltr"><<a href="mailto:shachar@shemesh.biz">shachar@shemesh.biz</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr" bgcolor="#ffffff" text="#000000"><div class="im">
Noam Rathaus wrote:
<blockquote type="cite">
<div dir="ltr">I know the time difference doesn't look too bad, but
take a bigger code set:<br>
<br>
Fast:<br>
real 0m1.682s<br>
user 0m1.584s<br>
sys 0m0.064s<br>
<br>
Slow:<br>
real 0m16.730s<br>
user 0m9.345s<br>
sys 0m0.096s<br>
<br>
</div>
</blockquote></div>
These times spell "CPU intensive". Does your library do anything
special? If you try to import a dummy library, does this still happen?<div class="im"><br>
<br>
Shachar<br>
<br>
<pre cols="72">--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
<a href="http://www.lingnu.com" target="_blank">http://www.lingnu.com</a>
</pre>
</div></div>
</blockquote></div><br></div>