1f65c31ccec089f32ae8ef2a55d54859183791c1,lazyflow/operators/opUnblockedArrayCache.py,OpUnblockedArrayCache,propagateDirty,#OpUnblockedArrayCache#Any#Any#Any#,117

Before Change


            if dirty_roi == maximum_roi:
                // Optimize the common case:
                // Everything is dirty, so no need to loop
                self._block_data = {}
                self._block_locks = {}
            else:
                // FIXME: This is O(N) for now.
                //        We should speed this up by maintaining a bookkeeping data structure in execute().
                for block_roi in self._block_data.keys():

After Change


                        self._block_data[block_roi] = block
            self._last_access_times[block_roi] = time.time()

    def propagateDirty(self, slot, subindex, roi):
        dirty_roi = self._standardize_roi( roi.start, roi.stop )
        maximum_roi = roiFromShape(self.Input.meta.shape)
        maximum_roi = self._standardize_roi( *maximum_roi )
        
        if dirty_roi == maximum_roi:
            // Optimize the common case:
            // Everything is dirty, so no need to loop
            self._resetBlocks()
        else:
            // FIXME: This is O(N) for now.
            //        We should speed this up by maintaining a bookkeeping data structure in execute().
            for block_roi in self._block_data.keys():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: ilastik/ilastik
Commit Name: 1f65c31ccec089f32ae8ef2a55d54859183791c1
Time: 2015-09-06
Author: webmaster@burgerdev.de
File Name: lazyflow/operators/opUnblockedArrayCache.py
Class Name: OpUnblockedArrayCache
Method Name: propagateDirty


Project Name: ilastik/ilastik
Commit Name: 1f65c31ccec089f32ae8ef2a55d54859183791c1
Time: 2015-09-06
Author: webmaster@burgerdev.de
File Name: lazyflow/operators/opUnblockedArrayCache.py
Class Name: OpUnblockedArrayCache
Method Name: propagateDirty


Project Name: ilastik/ilastik
Commit Name: 4c805743c2066f4af8268974a25029b505964027
Time: 2015-07-04
Author: webmaster@burgerdev.de
File Name: lazyflow/operators/opUnblockedArrayCache.py
Class Name: OpUnblockedArrayCache
Method Name: __init__


Project Name: ilastik/ilastik
Commit Name: 4c805743c2066f4af8268974a25029b505964027
Time: 2015-07-04
Author: webmaster@burgerdev.de
File Name: lazyflow/operators/opUnblockedArrayCache.py
Class Name: OpUnblockedArrayCache
Method Name: freeMemory