On Tue, Aug 12, 2008 at 3:41 PM, _why <[EMAIL PROTECTED]> wrote:
> On Tue, Aug 12, 2008 at 02:40:09PM -0700, Martin DeMello wrote:
>> Did a quick check, my crossword app is still slow
>> (http://zem.novylen.net/ruby/xword.rb). The specific bit that is slow
>> is the moving of the red rectangle outline over the board, so I'm
>> guessing that either my code is doing something very wrong, or that
>> it's triggering some image rendering and deletion issue.
>
> objects are piling up. one answer to speeding this app up is:
>
>  * take `renumber` out of the separate threads.
>  * in `renumber` start off with a `clear`.

I don't think it's the renumbering that's the issue (or, at least not
the only issue) - even when I comment out all the calls to Thread.new
{ renumber }, moving the cursor is slow. There's a perceptible lag
between hitting a key and the red square moving. It does seem to get
slower with time, too, which the objects piling up would explain.

> really nice, i like it!

Thanks :)

martin

Reply via email to