]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- moved class-level attributes placed by the attributes package into a _class_state
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 2 Dec 2007 00:31:26 +0000 (00:31 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 2 Dec 2007 00:31:26 +0000 (00:31 +0000)
commit0ec4e7d6b35685ba4b5d9e2053c765984b4a9189
tree844c44f7a55c207f17aa5c9b5c608448e43c5128
parentc6d01a56e168f1c70461c2684c70a2c5967c4814
- moved class-level attributes placed by the attributes package into a _class_state
variable attached to the class.
- mappers track themselves primarily using the "mappers" collection on _class_state.
ClassKey is gone and mapper lookup uses regular dict keyed to entity_name; removes
a fair degree of WeakKeyDictionary overhead as well as ClassKey overhead.
- mapper_registry renamed to _mapper_registry; is only consulted by the
compile_mappers(), mapper.compile() and clear_mappers() functions/methods.
CHANGES
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/orm/unitofwork.py
test/orm/entity.py