26 Apr
                
                    2014
                
            
            
                26 Apr
                
                '14
                
            
            
            
        
    
                3:53 p.m.
            
        Using a Storable vector is what I mostly do. It goes nicely with rendering arrays of objects using OpenGL `BufferObject`s, using `fromVector` from http://hackage.haskell.org/package/GLUtil-0.6.4/docs/Graphics-GLUtil-BufferO.... On 26/04/14 19:24, Michael Baker wrote:
I've thought of several things to try including: * Only allocate an array when the number of circles changes. * Convert a circles into a C struct and "poke" them directly into an existing array instead of going through the intermediate form of a list. * Do some manual memory management and index each circle into a preallocated array, only updating the values of the array that correspond to circles which have changed.