Merge lp:~mkanat/loggerhead/limit-pygments into lp:loggerhead
Proposed by
Max Kanat-Alexander
on 2010-04-22
| Status: | Merged |
|---|---|
| Approved by: | Ian Clatworthy on 2010-04-22 |
| 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) | 2010-04-22 | Approve on 2010-04-22 | |
|
Review via email:
|
|||
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.
lp:~mkanat/loggerhead/limit-pygments
updated
on 2010-04-22
- 409. By Max Kanat-Alexander on 2010-04-22
-
Don't put parens around the if condition

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.