• Adam Chainz's avatar
    Optimized Model instantiation a bit. · d2a26c1a
    Adam Chainz yazdı
    * 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
    d2a26c1a
Adı
Son kayıt (commit)
Son güncelleme
.tx Loading commit data...
django Loading commit data...
docs Loading commit data...
extras Loading commit data...
js_tests Loading commit data...
scripts Loading commit data...
tests Loading commit data...
.editorconfig Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.rst Loading commit data...
Gruntfile.js Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
LICENSE.python Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
package.json Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...