Ticket #672 (enhancement)
Opened 1 year ago
Last modified 1 year ago
Refactor cherrypy for lazy loading of imported modules
Status: closed (fixed)
| Reported by: | lawouach | Assigned to: | lawouach |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | CherryPy code | Keywords: | |
| Cc: |
In order to reduce the memory footprint of CherryPy we can refactor the library to import some of the required modules at the last moment by doing the import statement where they are needed and not blindly at the top of the each module.
This could help saving a few bytes.
Change History
03/19/07 13:22:41: Modified by michele
06/22/07 10:20:08: Modified by fumanchu
- status changed from new to closed.
- resolution set to fixed.
I think we've done all we can on this front for now. But it's a good design point to remember for the future.


An useful link:
http://www.blueskyonmars.com/2006/06/12/automatic-python-imports-with-autoimp/