# HG changeset patch # User John Rouillard # Date 1775453455 14400 # Node ID dd04456492447ceb2bad57da9b7f102d2b75073e # Parent 98fb176224fc73f09f5a4d2797dbcb6d284034fa bug(perf): put legacy '_file' last in tuple to speed up match diff -r 98fb176224fc -r dd0445649244 roundup/cgi/client.py --- a/roundup/cgi/client.py Mon Apr 06 01:27:39 2026 -0400 +++ b/roundup/cgi/client.py Mon Apr 06 01:30:55 2026 -0400 @@ -1826,10 +1826,10 @@ is generally only one entry long. - if there is no path, then we are in the "home" context. - - if the path is "_file", then the additional path entry - specifies the filename of a static file we're to serve up - from the instance "html" directory. Raises a SendStaticFile - exception.(*) + - if the path is "@@file" (or "_file", then the additional + path entry specifies the filename of a static file we're to + serve up from the instance "html" directory. Raises a + SendStaticFile exception.(*) - if there is something in the path (eg "issue"), it identifies the tracker class we're to display. - if the path is an item designator (eg "issue123"), then we're @@ -1891,7 +1891,7 @@ else: self.template = '' return - if path[0] in ('_file', '@@file'): + if path[0] in ('@@file', '_file'): raise SendStaticFile(os.path.join(*path[1:])) self.classname = path[0]