diff options
| author | Adam Chainz <me@adamj.eu> | 2016-12-15 18:42:44 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-12-15 13:42:44 -0500 |
| commit | d2a26c1a90e837777dabdf3d67ceec4d2a70fb86 (patch) | |
| tree | a3316323a8510f6c1296a6ed4f9481caf0b04125 /docs/ref | |
| parent | f94475e5262abe78d9771bc353f741b20cc3c725 (diff) | |
Optimized Model instantiation a bit.
* Avoid some unnecessary attribute lookups, e.g. access signals directly rather than from module
* Alias some repeat accesses inside the method to use the slightly faster local lookups
* Use tuple to iterate remaining kwargs as it's faster to construct
* Cache Field.get_default() to avoid running through all the logic on every call
* Use a cached list of the properties on the model class to avoid repeat isinstance() calls
Diffstat (limited to 'docs/ref')
0 files changed, 0 insertions, 0 deletions
