Make App.ImageFile use stream iterator
Bug #143902 reported by
Sidnei da Silva
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Medium
|
Hanno Schlichting |
Bug Description
Here's a patch to make App.ImageFile to do two things:
- Do *not* read the full file on startup, 64k is probably enough (too much?)
- Return a filestream_
Should make Zope startup a little bit faster, and serving ZMI icons too.
Changed in zope2: | |
assignee: | nobody → schlichting |
status: | New → Fix Committed |
Changed in zope2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Ops, forgot a print in there. :)