Merge lp:~mkanat/loggerhead/limit-pygments into lp:loggerhead
Proposed by
Max Kanat-Alexander
Status: | Merged |
---|---|
Approved by: | Ian Clatworthy |
Approved revision: | 409 |
Merged at revision: | not available |
Proposed branch: | lp:~mkanat/loggerhead/limit-pygments |
Merge into: | lp:loggerhead |
Diff against target: |
32 lines (+9/-0) 1 file modified
loggerhead/highlight.py (+9/-0) |
To merge this branch: | bzr merge lp:~mkanat/loggerhead/limit-pygments |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ian Clatworthy (community) | Approve | ||
Review via email: mp+23900@code.launchpad.net |
Commit message
Make pygments only highlight files if they're smaller than 512K, to prevent overloading loggerhead.
Description of the change
A fix for bug 513044--limit pygments to only being used on files 512K or smaller.
To post a comment you must log in.
The value probably ought to be a configuration setting down the track but this looks a sensible improvement as is. If anything, I'd be tempted to make the default limit even lower, e.g. 256K.