Changes between Initial Version and Version 1 of Ticket #17025, comment 6
- Timestamp:
- Oct 10, 2011, 2:41:05 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17025, comment 6
initial v1 1 1 Under heavy load I get more model instances from cache than from db. So unpickling was a great issue for me. 2 And I came up with https://gist.github.com/974735 to speed it up and sa me some space.2 And I came up with https://gist.github.com/974735 to speed it up and save some space. 3 3 4 4 Regarding `Model.__init__()` it looks like it should be optimized together with `QuertSet.iterator()`. Also, a common case when `len(args) == len(self._meta.fields)` could be optimized by use of a precached list of field attnames instead of `fields_iter` (see gist above for `attnames()` function).