From 7382f5d7e4a68bbed3bca8ffacecbcb035d4c90c Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Fri, 28 Aug 2020 14:08:53 -0600 Subject: [PATCH] docs: update `call-with-espace-continuation` The performance notes there applied to BC, not CS. Closes #3373 --- pkgs/racket-doc/scribblings/reference/cont.scrbl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/racket-doc/scribblings/reference/cont.scrbl b/pkgs/racket-doc/scribblings/reference/cont.scrbl index 277fae7064..cd527dfc4d 100644 --- a/pkgs/racket-doc/scribblings/reference/cont.scrbl +++ b/pkgs/racket-doc/scribblings/reference/cont.scrbl @@ -182,15 +182,15 @@ called in tail position, and the continuation procedure supplied to @racket[proc] can only be called during the dynamic extent of the @racket[call-with-escape-continuation] call. -Due to the limited applicability of its continuation, -@racket[call-with-escape-continuation] can be implemented more efficiently -than @racket[call-with-current-continuation]. - A continuation obtained from @racket[call-with-escape-continuation] is actually a kind of prompt. Escape continuations are provided mainly for backwards compatibility, since they pre-date general prompts in -Racket, and because @racket[call/ec] is often an easy replacement -for @racket[call/cc] to improve performance.} +Racket. In the 3m and CGC variants of Racket, +@racket[call-with-escape-continuation] is implemented more efficiently +than @racket[call-with-current-continuation], so +@racket[call-with-escape-continuation] can sometimes replace +@racket[call-with-current-continuation] to improve performance in +those older Racket variants.} @defproc[(call/ec [proc (continuation? . -> . any)])