~nicholas-hillier/mrol/mrol-dev

« back to all changes in this revision

Viewing changes to test/speed_test.py

  • Committer: Nick Hillier
  • Date: 2011-07-11 06:52:51 UTC
  • Revision ID: nick.hillier@csiro.au-20110711065251-ty9pqbddqp4r01db
Mucking around with trying to get the addpoints calls sped up. Tried many variations, but it seems that really just need to reduce the number of points being added to the map!

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
        overlap = self.ol.calccollisions(None, self.P)
85
85
        return overlap
86
86
        
87
 
    def calccollisions_voxel_overlap_slow(self):
 
87
    def calccollisions_voxel_overlap_dict(self):
88
88
        self.ol.use_bloom = False
89
89
        overlap = self.ol.calccollisions(None, self.P)
90
90
        return overlap
123
123
        # data sets as those that call an OccupiedList object.
124
124
        funcs = [
125
125
                self.nested_dict,
126
 
                self.calccollisions_voxel_overlap_slow,
 
126
                self.calccollisions_voxel_overlap_dict,
127
127
                self.calccollisions_voxel_overlap,
128
128
                self.binaryarray_overlap,
129
129
                self.kdtree_overlap,