Author: reinhard
Date: 2006-05-15 07:38:47 -0500 (Mon, 15 May 2006)
New Revision: 8465
Modified:
trunk/gnue-appserver/src/geasList.py
Log:
Use function pointer to improve performance.
Modified: trunk/gnue-appserver/src/geasList.py
===================================================================
--- trunk/gnue-appserver/src/geasList.py 2006-05-15 12:22:37 UTC (rev
8464)
+++ trunk/gnue-appserver/src/geasList.py 2006-05-15 12:38:47 UTC (rev
8465)
@@ -60,21 +60,12 @@
for item in self.__condition.findChildrenOfType ('GCexist', True, True):
item.callback = self.__evaluateExist
-
- # ---------------------------------------------------------------------------
- # Call the apropriate fillup function
- # ---------------------------------------------------------------------------
-
- def __fillupFunc (self, count):
- """
- This function calls an apropriate method to fill up the internal sequence
- of instances, depending wether appserver has to do sorting or not.
- """
-
+ # Choose the right cache fillup function, depending on whether appserver
+ # has to resort the data from the backend
if len (self.__asSorting):
- return self.__fillupSorted (count)
+ self.__fillupFunc = self.__fillupSorted
else:
- return self.__fillupUnsorted (count)
+ self.__fillupFunc = self.__fillupUnsorted
# ---------------------------------------------------------------------------
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue