]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
get profile 1a back down to 5100 calls, that one was 10% greater due to this
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 May 2013 00:02:17 +0000 (20:02 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 May 2013 00:02:17 +0000 (20:02 -0400)
lib/sqlalchemy/engine/base.py
test/profiles.txt

index c2ba0922b2b85b8d98ef4aa722c3119e374bde20..2d9f3af94ec47b4254cfa9040734b0205718f57d 100644 (file)
@@ -734,9 +734,9 @@ class Connection(Connectable):
 
         distilled_params = _distill_params(multiparams, params)
         if distilled_params:
-            # need list() + keys() here to suit
-            # both dict and RowProxy
-            keys = list(distilled_params[0].keys())
+            # note this is usually dict but we support RowProxy
+            # as well; but dict.keys() as an iterator is OK
+            keys = distilled_params[0].keys()
         else:
             keys = []
 
index a41e153d932876cc084d3b05628ceb7764f41b9e..090cf5ea1d52b1d1bc828a76ed3731d9db17e703 100644 (file)
@@ -265,8 +265,7 @@ test.aaa_profiling.test_resultset.ResultSetTest.test_unicode 3.3_sqlite_pysqlite
 
 # TEST: test.aaa_profiling.test_zoomark.ZooMarkTest.test_profile_1a_populate
 
-test.aaa_profiling.test_zoomark.ZooMarkTest.test_profile_1a_populate 2.7_postgresql_psycopg2_cextensions 5131
-test.aaa_profiling.test_zoomark.ZooMarkTest.test_profile_1a_populate 2.7_postgresql_psycopg2_nocextensions 5693
+test.aaa_profiling.test_zoomark.ZooMarkTest.test_profile_1a_populate 2.7_postgresql_psycopg2_nocextensions 5175
 test.aaa_profiling.test_zoomark.ZooMarkTest.test_profile_1a_populate 3.2_postgresql_psycopg2_nocextensions 4828
 test.aaa_profiling.test_zoomark.ZooMarkTest.test_profile_1a_populate 3.3_postgresql_psycopg2_nocextensions 4792