[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/RDB - ZopeCursor.py:1.4

Albertas Agejevas alga@codeworks.lt
Tue, 5 Nov 2002 07:15:28 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/RDB
In directory cvs.zope.org:/tmp/cvs-serv13399

Modified Files:
	ZopeCursor.py 
Log Message:
Comment on a possible optimization.


=== Zope3/lib/python/Zope/App/RDB/ZopeCursor.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/RDB/ZopeCursor.py:1.3	Mon Aug 12 11:07:30 2002
+++ Zope3/lib/python/Zope/App/RDB/ZopeCursor.py	Tue Nov  5 07:15:28 2002
@@ -55,6 +55,9 @@
         getConverter = self.connection.getTypeInfo().getConverter
         converters = [getConverter(col_info[1])
                       for col_info in self.cursor.description]
+## A possible optimization -- need benchmarks to check if it is worth it
+##      if filter(lambda x: x is not ZopeDatabaseAdapter.identity, converters):
+##          return results  # optimize away
         def convertRow(row):
             return map(lambda converter, value: converter(value),
                        converters, row)