Message54612
'urllib.quote' delegates to '_fast_quote' for the common
case that the user has passed no 'safe' argument. However,
'_fast_quote' isn't really very fast, especially for
the case that
it doesn't need to quote anything.
Zope (and presumably other web frameworks) can end up
calling 'quote' dozens, hundreds, even thousands of times
to render a page, which makes this a potentially big win
for them.
I will attach a speed test script which demonstrates the
speed penalty, along with a patch which implements the
speedup. |
|
Date |
User |
Action |
Args |
2007-08-23 16:11:18 | admin | link | issue1285086 messages |
2007-08-23 16:11:18 | admin | create | |
|