Merge lp:~benji/lazr.restful/faster-wadl-generation into lp:lazr.restful
Proposed by
Benji York
Status: | Merged |
---|---|
Approved by: | Benji York |
Approved revision: | 157 |
Merged at revision: | 156 |
Proposed branch: | lp:~benji/lazr.restful/faster-wadl-generation |
Merge into: | lp:lazr.restful |
Diff against target: |
101 lines (+58/-3) 3 files modified
src/lazr/restful/NEWS.txt (+6/-0) src/lazr/restful/tales.py (+51/-2) src/lazr/restful/version.txt (+1/-1) |
To merge this branch: | bzr merge lp:~benji/lazr.restful/faster-wadl-generation |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Leonard Richardson (community) | Approve | ||
Review via email: mp+41232@code.launchpad.net |
Description of the change
Added an optimization to the WADL docstring handling that results in a 30%
decrease in WADL generation time for large files.
To post a comment you must log in.
The change itself looks fine. We should try to get something like this into epydoc, but this is a big enough improvement to justify some temporary messiness.
But, the code is much messier than it needs to be. It's bad to have lots of code outside classes and function definitions, since it's difficult to pinpoint exactly where that code "lives". Can you contain all that code in a class called _PydocParser, then instantiate it as a top-level object called _PYDOC_PARSER and invoke its parse_docstring() method as needed.