# HG changeset patch # User Frederic Bastien # Date 1212510353 14400 # Node ID 7e6edee187e31384aa35ebf174f904b680aeadb6 # Parent 474be3d12c23ae99e464596c82e11d2ad0cd6304 optimization of CachedDataSet__getitem__ diff -r 474be3d12c23 -r 7e6edee187e3 dataset.py --- a/dataset.py Tue Jun 03 12:18:22 2008 -0400 +++ b/dataset.py Tue Jun 03 12:25:53 2008 -0400 @@ -1161,7 +1161,7 @@ if type(i)==int and len(self.cached_examples)>i: return self.cached_examples[i] else: - return DataSet.__getitem__(self,i) + return self.source_dataset[i] class ApplyFunctionDataSet(DataSet): """