Reduce contention for the lock in activeRegion with a change to -enumerateActiveChunkWithBlock: so that it copies the chunks to a temp buffer and then executes blocks by enumerating them in the temp buffer. The lock only needs to be held long enough to copy activeChunks.
Reduce contention for the lock in activeRegion with a change to
-enumerateActiveChunkWithBlock: so that it copies the chunks to a temp
buffer and then executes blocks by enumerating them in the temp buffer.
The lock only needs to be held long enough to copy activeChunks.

foxostro/GutsyStormCocoa