<br><br><div class="gmail_quote">On Tue, Mar 25, 2008 at 4:11 PM, Benoît Allard &lt;<a href="mailto:benoit@aeteurope.nl">benoit@aeteurope.nl</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;">
<div class="Ih2E3d">&gt; hg serve is then running at 100 % CPU. I&#39;ve stopped it after 5 minutes.<br>
&gt; Running pygmentize on the Collection.i18n.php file works without problems...<br>
<br>
</div>Did not tried it much, but I got the same behavior, attached patch<br>
(exported via &quot;export&quot; ;-) ) avoid it hanging, and fix a (I guess)<br>
backward compatibility issue with pygments 0.5.1-1 (debian stable).<br>
<br>
Thanks so far<br>
<br>
Regards<br>
Benoit<br>
<br># HG changeset patch<br>
# User Benoit Allard &lt;<a href="mailto:benoit@aeteurope.nl">benoit@aeteurope.nl</a>&gt;<br>
# Date 1206456852 -3600<br>
# Node ID 00a86bb551b1a5331cb0445df914f4b1da10426e<br>
# Parent &nbsp;7d68ac898539d4f9e5de07972e240cca3a599d14<br>
On Debian stable, pygments is version 0.5.1-1 and raise a ValueError<br>
guess_lexer is way too slow to be usable.<br>
</blockquote><div><br>if that is the problem, maybe only looking at the first N bytes could also solve it...<br>I will try that...<br><br><br>- Ralf<br><br></div></div>