gui/collects/framework/private
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
..
application.rkt ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
aspell.rkt fix a coloring bug 2012-11-24 14:05:45 -06:00
autocomplete.rkt Big newline at EOF scan. 2012-02-29 00:28:11 -05:00
autosave.rkt some long overdue Rackety: renaming the 'scheme:' exports of the framework to 'racket:' 2011-11-30 06:45:50 -06:00
bday.rkt Redo text sculpturing. 2012-07-06 16:07:30 -04:00
canvas.rkt change the way that the delegate text is specified, using 2012-11-16 14:33:17 -06:00
collapsed-snipclass-helpers.rkt fix the collapsed snipclass so that it cooperates with the wxme library and 2011-09-13 14:58:39 -05:00
color-model.rkt removed useless requires 2011-09-27 19:28:44 -06:00
color-prefs.rkt add preference settings so that the misspelled words color 2012-10-14 22:27:50 -05:00
color.rkt tweak to Nadeem's commit 2012-11-25 22:07:28 -06:00
comment-box.rkt some long overdue Rackety: renaming the 'scheme:' exports of the framework to 'racket:' 2011-11-30 06:45:50 -06:00
coroutine.rkt improve the interactivity of DrRacket's search 2012-11-25 20:58:13 -06:00
decode.rkt Encode any text instead of going through a pretty-printer. 2010-10-14 13:46:51 -04:00
decorated-editor-snip.rkt removed useless requires 2011-09-27 19:28:44 -06:00
early-init.rkt ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
editor.rkt improve the interactivity of DrRacket's search 2012-11-25 20:58:13 -06:00
encode.rkt removed useless requires 2011-09-27 19:28:44 -06:00
exit.rkt ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
finder.rkt removed useless requires 2011-09-27 19:28:44 -06:00
focus-table.rkt removed useless requires 2011-09-27 19:28:44 -06:00
frame.rkt improve the interactivity of DrRacket's search 2012-11-25 20:58:13 -06:00
gen-standard-menus.rkt Improve code generation in the framework collection. 2011-09-30 10:51:28 -04:00
group.rkt adjust the windows menu so that it doesn't rely on 2012-08-16 19:16:57 -05:00
handler.rkt removed useless requires 2011-09-27 19:28:44 -06:00
icon.rkt removed useless requires 2011-09-27 19:28:44 -06:00
keymap.rkt make right-clicking on non-text offer copy and cut in the 2012-11-22 17:33:34 -06:00
logging-timer.rkt add some first-cut logging information to drracket 2012-10-26 21:49:44 -05:00
main.rkt added spelling dictionary support 2012-11-22 19:24:22 -06:00
mapdesc.rkt rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
menu.rkt ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
mode.rkt removed useless requires 2011-09-27 19:28:44 -06:00
number-snip.rkt adjust number-snip% so that it subscribes to the file/convertible 2011-11-20 16:38:17 -06:00
panel.rkt make right-click in the space between the definitions and 2011-10-04 16:47:10 -05:00
pasteboard.rkt ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
path-utils.rkt removed useless requires 2011-09-27 19:28:44 -06:00
preferences.rkt adjust the print-to-ps preference in DrRacket so that you can also 2012-09-17 10:47:22 -05:00
racket.rkt Optimize stick-to-next-sexp? to speculative match before using forward-match. 2012-11-26 13:42:49 -07:00
scheme.rkt some long overdue Rackety: renaming the 'scheme:' exports of the framework to 'racket:' 2011-11-30 06:45:50 -06:00
search.rkt removed useless requires 2011-09-27 19:28:44 -06:00
sig.rkt add preference settings so that the misspelled words color 2012-10-14 22:27:50 -05:00
standard-menus-items.rkt control-alt for menu selections probably shouldn't be 2012-08-21 08:16:39 -05:00
text.rkt fix some right/top mixups 2012-11-26 12:23:27 -06:00
version.rkt removed useless requires 2011-09-27 19:28:44 -06:00