commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r8455 - trunk/gnue-appserver/src


From: reinhard
Subject: [gnue] r8455 - trunk/gnue-appserver/src
Date: Fri, 12 May 2006 10:57:53 -0500 (CDT)

Author: reinhard
Date: 2006-05-12 10:57:52 -0500 (Fri, 12 May 2006)
New Revision: 8455

Modified:
   trunk/gnue-appserver/src/data.py
Log:
Removed checktype calls in performance critical methods of non-public _cache 
class.


Modified: trunk/gnue-appserver/src/data.py
===================================================================
--- trunk/gnue-appserver/src/data.py    2006-05-12 15:50:24 UTC (rev 8454)
+++ trunk/gnue-appserver/src/data.py    2006-05-12 15:57:52 UTC (rev 8455)
@@ -118,10 +118,6 @@
         it will change the clean cache.
     """
 
-    checktype (table, unicode)
-    checktype (row, unicode)
-    checktype (field, unicode)
-
     key = "%s-%s" % (table, row)
 
     # If we add 'clean' data there is no need to maintain an undo sequence
@@ -171,10 +167,6 @@
     @return: The current or clean value of the given field
     """
 
-    checktype (table, unicode)
-    checktype (row, unicode)
-    checktype (field, unicode)
-
     # Make sure to use the proper dictionary; use the dirty tables only if a
     # dirty value is available, otherwise always use the clean tables.
     if dirty and self.__has (table, row, field, True):
@@ -232,10 +224,6 @@
     @return: True if a value for field is available, False otherwise
     """
 
-    checktype (table, unicode)
-    checktype (row, unicode)
-    checktype (field, unicode)
-
     try:
       # If we do not search for a given kind (clean/dirty) try both
       if dirty is None:
@@ -273,9 +261,6 @@
     @raises StateChangeError: if the former state is not 'initializing'.
     """
 
-    checktype (table, unicode)
-    checktype (row, unicode)
-
     key = "%s-%s" % (table, row)
 
     # Calling initialized () is allowed only if the former state was
@@ -460,9 +445,6 @@
     @return: current state of the given (table, row) tuple in the cache
     """
 
-    checktype (table, unicode)
-    checktype (row, unicode)
-
     key   = "%s-%s" % (table, row)
     state = self.__state.get (key, 'clean')
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]