Updated: 11/17/02; 1:04:38 AM.
Rough Days for a Gentil Knight
The Radio weblog of Oblivious Allan Baruz.
“He was a verray parfit gentil knight.” —Chaucer
        

Sunday 23 June 2002

I am trying to figure out how to set up a Smalltalk infinite Form. Not an InfiniteForm, which is a sibling class (inherits from DisplayMedium as well), but which fills up an entire field with a single Form repeated over and over, but a Form of inifinite extent. I need a Form that can expand on demand and yet keep a small memory footprint. I figure something along the lines of a sparse matrix, with empty Points not being represented. Perhaps a Form with an on-demand Bitmap, that expands whenever a Point is accessed outside the current bounds? But allocating a bigger Bitmap on each bounds miss will probably cause a performance hit :.). How about a collection of smaller Bitmaps that are already allocated and are assigned a particular offset when needed, then, when time permits, are rolled into a larger Bitmap? Or when called to BitBlt, perhaps alter the message to BitBlt every used Bitmap—that is, use the Composite design pattern?
8:38:41 PM    comment []

© Copyright 2002 Richard Allan Baruz.
This is a personal weblog; that is, it is in no way affiliated nor connected with the company for which I work, nor the clients to whom I am contracted.
 
June 2002
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
May   Jul

Previous/Next


All Your Links Are Belong To Us!
If you came by way of a search engine and did not find exactly what you were looking for, try the

People who may think me ungrateful rather than incompetent
Smart people I ought to read more
Those who have cared to comment
Well-connected
Can’t help myself

Self-linked... creepy, or crappy?

Click here to visit the Radio UserLand website.

Subscribe to "Rough Days for a Gentil Knight" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.