~loggerhead-team/loggerhead/trunk-rich

Viewing all changes in revision 407.1.1.

  • Committer: Max Kanat-Alexander
  • Date: 2010-04-22 03:10:41 UTC
  • mto: This revision was merged to the branch mainline in revision 409.
  • Revision ID: mkanat@bugzilla.org-20100422031041-7nvgi9m1kcs1s8m2
Pygments can be very slow on large files (about 1 second per 128K).
When loggerhead would try to highlight enormous files, it would
slow to a crawl, causing it to effectively hang. So here, we
make it only highlight files if they are smaller than 512K.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: