Jonas H. reported about slow horizontal scrolling on talk.
http://rubyforge.org/pipermail/sup-talk/2010-December/004400.html
I looked into it and found out that scrolling is pretty much fully
dependant on Buffer#write and main cpu hogs within it are
String#display_length (uses String#scan when on
Yeah, I've noticed how slow method_missing is and that's also a problem
with our use of Singleton in the codebase. Here we might as well hoist
the conditional out of the method definition.
___
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforg
Rich Lane, 2010-12-31 02:10:
> Yeah, I've noticed how slow method_missing is and that's also a
> problem with our use of Singleton in the codebase.
I think we could have Singleton.method_missing actually create the
methods as they are called.
--
Tero Tilus ## 050 3635 235 ## http://tero.tilus.ne
Tero Tilus, 2010-12-31 02:34:
> I think we could have Singleton.method_missing actually create the
> methods as they are called.
>From words to deeds. ;)
--
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
0003-Improve-Singleton-performance.patch
Description: Binary data
_
Tero Tilus, 2010-12-31 03:44:
> From words to deeds. ;)
...to first fix. Private methods (at least Index.sync_message) are
being called on singletons and looks like they are expected to work.
--
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
0003-Improve-Singleton-performance.patch
Des