jpf91/cairoD — Issue #9: Region.getRectangles is memory-hungry
Author: AndrejMitrovic
Created: 2011-10-20 04:04:49+00:00
State: open

getRectangles allocates a new dynamic array each time it's called. Unfortunately due to D's memory-munching GC this means an app will keep allocating memory each time this function is called.

This function should be replaced with an input range since Cairo already has indexing operations for each individual rectangle (or clip).

I'm the one who made getRectangles use an array, so I'll fix this asap by replacing it with a range interface.