gui/collects/framework
Danny Yoo 5bc070d1d8 Optimize stick-to-next-sexp? to speculative match before using forward-match.
Profiler output suggests that forward-match is a bit expensive.  Here
is profiler output from the original code, when profiler is wrapped
around tabify-selection:

------------------------------------------------------------------------------------------------------------
                                  loop [34]                                                             0.1%
                                  get-backward-sexp method in ...k/private/racket.rkt:425:2 [28]       99.9%
 [37] 50648(61.1%)     0(0.0%)  stick-to-next-sexp? method in ...k/private/racket.rkt:425:2 ...
                                  do-forward-match method in ...rk/private/color.rkt:71:2 [50]         99.9%

...

------------------------------------------------------------------------------------------------------------
                                  get-forward-sexp method in ...k/private/racket.rkt:425:2 [38]        17.1%
                                  stick-to-next-sexp? method in ...k/private/racket.rkt:425:2 [37]     82.9%
 [50] 61043(73.6%)    53(0.1%)  do-forward-match method in ...rk/private/color.rkt:71:2 ...
                                  colorer-driver method in ...rk/private/color.rkt:71:2 [66]           99.8%
                                  match-forward method in paren-tree% [72]                              0.1%
------------------------------------------------------------------------------------------------------------

The patch does the prerequisite string matching before calling forward-match.

Reference to dev list: http://lists.racket-lang.org/dev/archive/2012-November/010976.html

original commit: 43b0e2157c5247653da96d24dee833be429c4bfc
2012-11-26 13:42:49 -07:00
..
private Optimize stick-to-next-sexp? to speculative match before using forward-match. 2012-11-26 13:42:49 -07:00
collapsed-snipclass-wxme.rkt removed useless requires 2011-09-27 19:28:44 -06:00
collapsed-snipclass.rkt fix the collapsed snipclass so that it cooperates with the wxme library and 2011-09-13 14:58:39 -05:00
comment-snip.rkt rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
decorated-editor-snip.rkt ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
doc.txt Get rid of "defaultly"s. 2011-06-28 02:11:24 -04:00
framework-sig.rkt ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
framework-unit.rkt some long overdue Rackety: renaming the 'scheme:' exports of the framework to 'racket:' 2011-11-30 06:45:50 -06:00
framework.rkt ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
gui-utils.rkt implement scribble/srcdoc' via submodules instead of expand' 2012-05-12 01:37:50 -06:00
keybinding-lang.rkt rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
main.rkt made the install-plt menu item's browse 2012-11-22 20:35:06 -06:00
preferences.rkt implement scribble/srcdoc' via submodules instead of expand' 2012-05-12 01:37:50 -06:00
splash.rkt A bunch of fprintf' -> eprintf' conversions (and a few related things). 2012-05-06 12:06:00 -04:00
test.rkt make the 'failed to click on the radio box' error message more helpful 2012-11-11 20:13:25 -06:00