<HTML>
<HEAD>
<TITLE>Re: [PATCH] speed up tokenize_command</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>OK I took a closer look. &nbsp;&nbsp;Looks like it&#8217;s faster for O3 and it&#8217;s cleaner too! &nbsp;I&#8217;ll check with Steve about rolling it in. &nbsp;Thanks.<BR>
<BR>
<BR>
On 4/12/07 4:57 PM, &quot;Paolo Borelli&quot; &lt;paolo.borelli@gmail.com&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'>Hi, thanks for integrating the previous patches so fast!<BR>
<BR>
It made me want to stare a bit at the code to look for any other little<BR>
improvements to make. I stumbled on tokenize_command() and for fun I<BR>
tried to write a faster version (no idea if it is a real bottleneck).<BR>
<BR>
Attached there is my version and the small bench I used: on my machine<BR>
the function is about 20% faster. The nice thing is that the function is<BR>
even shorter and cleaner :)<BR>
<BR>
I tested it a bit to see if my function handled all the cases in the<BR>
same way as the old one and it seems ok, but keep in mind that it has<BR>
not been tested in production...<BR>
<BR>
<BR>
ciao<BR>
&nbsp;Paolo<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:10.0px'><BR>
</SPAN></FONT></FONT>
</BODY>
</HTML>