From fed9746be7ff51215aae3281b0dc9ed2e32d89a1 Mon Sep 17 00:00:00 2001 From: Robby Findler Date: Wed, 15 Jun 2011 16:44:10 +0800 Subject: [PATCH] add more caching to avoid calling normalize-path so much; this should affect the test coverage coloring and the stacktrace arrows/stop-sign window original commit: 9bf26ef69e5b8c067286109afe7401665133ff3b --- collects/scribblings/framework/text.scrbl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/collects/scribblings/framework/text.scrbl b/collects/scribblings/framework/text.scrbl index a5aa3744..c913607d 100644 --- a/collects/scribblings/framework/text.scrbl +++ b/collects/scribblings/framework/text.scrbl @@ -125,14 +125,17 @@ See also @method[text:basic<%> port-name-matches?]. } - @defmethod*[(((port-name-matches? (id any/c)) boolean?))]{ + @defmethod[(port-name-matches? (id any/c)) boolean?]{ Indicates if @scheme[id] matches the port name of this file. If the file is saved, the port name matches when the save file is the path as @scheme[id]. If the file has not been saved, the port name matches if the symbol is the same as the result of - @method[text:basic<%> port-name-matches?]. + @method[text:basic<%> get-port-name]. + This method calls @racket[normalize-path] and thus can be very + expensive on some filesystems. If it is called many times in a + loop, cache the results to avoid calling it too often. } @defmethod[(get-edition-number) exact-nonnegative-integer?]{ Returns a number that increments every time something in