#16971 closed Cleanup/optimization (fixed)
Speed-up for jslex used during makemessages for Javascript files.
| Reported by: | Ned Batchelder | Owned by: | nobody |
|---|---|---|---|
| Component: | Internationalization | Version: | 1.3 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The JsLex lexer introduced in [16333] has a fairly slow inner loop, because of the string truncation used as tokens are consumed.
Antti Haapala (antti@…) contributed a much tighter implementation of the inner loop:
https://bitbucket.org/ned/jslex/issue/1/jslex-is-slooow-on-big-javascript-files
This applies that same patch to the Django code.
Attachments (1)
Change History (3)
by , 14 years ago
| Attachment: | jslex-speedup.patch added |
|---|
comment:1 by , 14 years ago
| Triage Stage: | Unreviewed → Ready for checkin |
|---|
Note:
See TracTickets
for help on using tickets.
The patch!