diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-01-04 01:53:42 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-01-04 01:53:42 -0500 |
commit | 315db703a63f5fe5fecf6417f78ff513ff091966 (patch) | |
tree | e7cec92b6fae3c9c0f6e717acaa8fdde5ce780f6 /lib/sqlalchemy/orm/base.py | |
parent | b1928d72098dd68c8aba468d94407f991f30d465 (diff) | |
download | sqlalchemy-slots.tar.gz |
- start trying to move things into __slots__. This seems to reduce theslots
size of the many per-column objects we're hitting, but somehow the overall memory is
hardly being reduced at all in initial testing
Diffstat (limited to 'lib/sqlalchemy/orm/base.py')
-rw-r--r-- | lib/sqlalchemy/orm/base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/base.py b/lib/sqlalchemy/orm/base.py index 3390ceec4..afeeba322 100644 --- a/lib/sqlalchemy/orm/base.py +++ b/lib/sqlalchemy/orm/base.py @@ -438,6 +438,8 @@ class InspectionAttr(object): """ + __slots__ = () + is_selectable = False """Return True if this object is an instance of :class:`.Selectable`.""" @@ -520,3 +522,4 @@ class _MappedAttribute(object): attributes. """ + __slots__ = () |