From: Gaƫtan de Menten Date: Wed, 3 Mar 2010 20:39:58 +0000 (+0000) Subject: timings should use getitem and not the slow getattr X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b56544a618543168427e2ca1a5d6db3ab7ae4e7;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git timings should use getitem and not the slow getattr --- diff --git a/test/perf/objselectspeed.py b/test/perf/objselectspeed.py index 896fd4c494..6176b15490 100644 --- a/test/perf/objselectspeed.py +++ b/test/perf/objselectspeed.py @@ -44,10 +44,10 @@ def sql_select(entity_cls): people = [] for row in Person_table.select().execute().fetchall(): person = entity_cls() - person.id = row.id - person.name = row.name - person.sex = row.sex - person.age = row.age + person.id = row['id'] + person.name = row['name'] + person.sex = row['sex'] + person.age = row['age'] people.append(person) def orm_select():