summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAdam Chainz <me@adamj.eu>2016-12-15 18:42:44 +0000
committerTim Graham <timograham@gmail.com>2016-12-15 13:42:44 -0500
commitd2a26c1a90e837777dabdf3d67ceec4d2a70fb86 (patch)
treea3316323a8510f6c1296a6ed4f9481caf0b04125 /docs/ref
parentf94475e5262abe78d9771bc353f741b20cc3c725 (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