My numbers, and an additional version. As I use linux, my xml file is<br>a 1606348 bytes rhythmbox.xml:<br><br><br>threaded:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8.39, 8.44, 8.05<br>(my)threaded:&nbsp;&nbsp; 1.53, 1.53. 1.54<br>stackless:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  1.07, 0.94. 0.97
<br>SAX interface:&nbsp;&nbsp; 0.28, 0.27, 0.29<br>
<br>
My version substitutes the bloated and hyperlocked Queue class by a<br>deque + simple locking, using with for cleaner code.<br><br>To test using 2.4,<br><br>with lock:<br>&nbsp; &lt;code&gt;<br><br>can be substituted by:<br><br>
try:<br>&nbsp; lock.acquire()<br>&nbsp; &lt;code&gt;<br>finally:<br>&nbsp; lock.release()<br><br>A substantial part of the overhead, thus, is due to the Queue class, though<br>stackless is still 50%+ faster than a simple deque+lock solution, plus cleaner code
<br><br><div><span class="gmail_quote">On 1/27/07, <b class="gmail_sendername">Andrew Dalke</b> &lt;<a href="mailto:dalke@dalkescientific.com">dalke@dalkescientific.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Jan 27, 2007, at 5:35 AM, Taylor Boon wrote:<br>&gt; Here are some more numbers:<br>&gt;<br>&gt; threaded version: 72.5s, 73.6s, 73.5s<br>&gt; stackless version: 8.0s, 8.0s, 7.9s<br>&gt; low-level SAX interface: 3.8s, 
3.2s, 3.2s<br>&gt;<br>&gt; The file I used was also my iTunes library: 10,547,041 bytes with<br>&gt; 381822<br>&gt; calls to startElement.<br>&gt;<br>&gt; These numbers were generated in Windows XP Pro SP2 on an AMD Athlon 64
<br>&gt; x2<br>&gt; 4200+ with Python 2.5 Stackless 3.1b3.<br><br>Thanks!<br><br>&gt; I had to run the<br>&gt; threaded and stackless tests a couple of more times just to verify<br>&gt; that the<br>&gt; difference is almost an order of magnitude.
<br><br>I&#39;m glad to know that I&#39;m not the only one who was suspicious<br>about the difference.&nbsp;&nbsp;:)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Andrew<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:dalke@dalkescientific.com">
dalke@dalkescientific.com</a><br><br><br>_______________________________________________<br>Stackless mailing list<br><a href="mailto:Stackless@stackless.com">Stackless@stackless.com</a><br><a href="http://www.stackless.com/mailman/listinfo/stackless">
http://www.stackless.com/mailman/listinfo/stackless</a><br></blockquote></div><br>