diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-29 19:07:27 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-29 19:07:27 -0400 |
commit | 5eff49e08d547536a0ea87be2a64d8aed2335c61 (patch) | |
tree | 70f309c2a32bc56fa394e5e2f2f5a874fd8d68c5 /lib/sqlalchemy/orm | |
parent | ab5a1a7f4a87e6e74335986a571b03e2fb6c15ee (diff) | |
download | sqlalchemy-attempt_c_loading.tar.gz |
- attempt to write part of _populate_full in C. Performance differenceattempt_c_loading
is pretty much zippo! 1%. to use C code here would require a much more
fundamental rewrite of everything so that we aren't just calling python
functions.
Diffstat (limited to 'lib/sqlalchemy/orm')
-rw-r--r-- | lib/sqlalchemy/orm/loading.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/loading.py b/lib/sqlalchemy/orm/loading.py index 28843a528..bc51b021b 100644 --- a/lib/sqlalchemy/orm/loading.py +++ b/lib/sqlalchemy/orm/loading.py @@ -416,8 +416,9 @@ def instance_processor(mapper, context, result, path, adapter, return instance return _instance +from sqlalchemy.cloader import _populate_full -def _populate_full( +def _dont_populate_full( context, load_path, row, state, dict_, isnew, loaded_instance, populate_existing, populators): if isnew: |