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

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



Jonas H., 2010-12-23 12:17:
> On 12/20/2010 02:57 PM, Tero Tilus wrote:
> > I've never had any problems with that.  Not even with really lo-fi hw.
> > Could you try profiling if? (gem install ruby-prof, launch sup using
> > ruby-prof and do scrolling, preferably a lot of it and then exit)
> 
> Results attached; the 'short' log is without lines that only consist of 
> 0.0[012]  0.0[012]  ...  0.0[012].

The biggest problem seems to be String#display_length with ruby
versions < 1.9.1.  Manually calculating display lenght using
scan(/./u) is definitely not nice, but I don't know how could you make
it faster.  Maybe caching calculated display_lengths?

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

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