Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only use type in inheritance situations.

This is mostly a performance related change, but instead of always
having _type field defined and suffering the inheritance check every
time we apply defaults, we now only define it once something has been
subclassed.

The perf implications on 150k iterations:

Before:

Load from DB  4.580000   0.010000   4.590000 (  4.660224)
Instantiation 4.900000   0.000000   4.900000 (  4.904462)

After:

Load from DB  2.840000   0.010000   2.850000 (  2.910107)
Instantiation 3.540000   0.000000   3.540000 (  3.542787)
  • Loading branch information...
commit 36d0ba9207ecf38b069a0a594c32da4803d6a234 1 parent f6dbc1c
@durran durran authored

Sorry, this diff is temporarily unavailable due to heavy server load.

Please try again later.

Please sign in to comment.
Something went wrong with that request. Please try again.