From 5eff49e08d547536a0ea87be2a64d8aed2335c61 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 29 Aug 2014 19:07:27 -0400 Subject: - attempt to write part of _populate_full in C. Performance difference 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. --- lib/sqlalchemy/orm/loading.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/orm/loading.py') 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: -- cgit v1.2.1