Hi,

On Jan 15, 7:35 am, "a¿ex" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> did anybody already replaced pygments syntax highlighting by highlight
> (http://www.andre-simon.de/) ?
>
> Highlight seems significantly faster, than pygments and I would like
> to try the performance difference in my trac browser.
Don't forget that pygments is written in Python and a lot more
accurate than highlight. Pygments is able to highlight complex
languages such as Ruby or Perl and it can handle nested lexers such as
JavaScript in HTML. If you encounter a situation where pygments
highlights too slow for you please tell send us the input file and
which lexer is used and we try to optimize that lexer. In the past we
for example had a bug in the Java lexer which resulted in exponential
runtime for some files.

But to get your sourcecode browser faster the best thing would be to
add a cache to trac that caches highlighted files for 10 minutes or
so.

Regards,
Armin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to