What version of Firefox are you using? This file renders for me with no browser sluggishness on: - Firefox 3.6 on Mac OS X - Firefox 3.0 on Linux - Any version of Chrome
Admittedly, these are all relatively fast computers. But Javascript performance got a lot better between Firefox 2 and 3, for instance. IIRC, GitHub does syntax highlighting server-side instead of in the browser, so any sluggishness would only manifest itself as a slow page load rather than an unresponsive browser. If you can narrow down a more specific performance problem, it would be good to file a bug either on the issue tracker for our syntax highlighter -- http://code.google.com/p/google-code-prettify/issues/list -- or on the main Project Hosting issue tracker, http://code.google.com/p/support/issues/list. On Mon, Mar 22, 2010 at 12:02 PM, Jack <[email protected]> wrote: > I have several heavily templated functions and classes in my C++ > project and their implementations often lead to files that are a few > thousand lines. > > The worst offender is: > http://code.google.com/p/elemental/source/browse/src/BLAS/Level1/Dot/Dot.cpp > When I load that file in Firefox and try to scroll down, the browser > locks up for a second and gives the following warning: > > "A script on this page may be busy, or it may have stopped responding. > You can stop the script now, or you can continue to see if the script > will complete. > > Script: > http://www.gstatic.com/codesite/ph/4947822560086976896/js/prettify/prettify.js:30" > > I'm greatly preferring google code to github so far, but syntax > highlighting was not an issue there. I presume they are caching the > markup for the code after every commit. > > Is there a planned fix for this issue? > > Best regards, > Jack Poulson > > -- > You received this message because you are subscribed to the Google Groups > "Project Hosting on Google Code" 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/google-code-hosting?hl=en. > > -- Jacob Lee <[email protected]> -- You received this message because you are subscribed to the Google Groups "Project Hosting on Google Code" 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/google-code-hosting?hl=en.

