Changes between Initial Version and Version 1 of Ticket #17025, comment 6


Ignore:
Timestamp:
Oct 10, 2011, 2:41:05 AM (13 years ago)
Author:
Alexander Schepanovski

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17025, comment 6

    initial v1  
    11Under 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 same some space.
     2And I came up with https://gist.github.com/974735 to speed it up and save some space.
    33
    44Regarding `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).
Back to Top