[Zope-dev] Re: Speed win in Python's urllib.quote
Chris Withers
chris at simplistix.co.uk
Tue Sep 13 02:42:56 EDT 2005
(zope3-dev trimmed)
Hi Tres,
Tres Seaver wrote:
>
> On further consideration (and after some more profiling), I would
> actually prefer inlining the speedup code directly into
> OFS.Traversable.Traversable, to remove the extra function call as well
> as to avoid the gnarliness of monkey-patching Python.
Fair enough :-)
> An alternative
> would be to call 'quote' only once (for the completed string), rather
> than repeatedly (for each path element).
Wouldn't that then encode all the /'es?
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope-Dev
mailing list