[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] Help me getting started.



Tero Tilus, 2010-12-30 17:31:
> Maybe caching calculated display_lengths?

Caching cuts down String#scan calls by ~30% and produces no
perceivable difference in scrolling responsivenes.

After String#display_length caching the main cpu hog is
Ncurses::WINDOW#method_missing, which dispatches calls to wide char or
ordinary Ncurses methods depending what's available.  Gonna try to
hardwire Ncurses::WINDOW#mvaddstr next.

> Looks like I just haven't done enough scrolling to find that out. :-O

Now that I really look into this.  The performance I see (sup runnin
screened on Bytemark VPS) is considerably better that what is seen on
the video.  It is definitely not fast, but otoh I can't make it lag
behind like it does on the video.

-- 
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk