On Thu, Jul 31, 2008 at 11:35 PM, Martin DeMello
<[EMAIL PROTECTED]> wrote:
> I've attached a copy of my current work-in-progress. It's a crossword
> editor; right now it just provides an editor for the grid (letters and
> black squares). The problem is, it's really slow - there's a
> perceptible lag between my hitting a key and the cursor moving - and I
> haven't been able to figure out why. Any pointers? Is there a way to
> profile it?

Okay, I've conclusively identified the culprit - it's the text. If I
comment out the call to draw in the letters and numbers, everything
speeds way up. Anything I can do about that?

Plus playing with the code a bit I managed to get a reproducible
segfault. I've put in comments to show where. Just start up the app
and hit space a few times.

martin

Attachment: xword.rb
Description: Binary data

Reply via email to