[Zope-dev] Re: Speed win in Python's urllib.quote

2005-09-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tres Seaver wrote: > While profiling a page full of dynamically-generated links, I was > interested to see Python's 'urllib._fast_quote' show up quite high in > the total time list. After looking at it, I have found a pretty huge > speed win available

Re: [Zope-dev] Re: Speed win in Python's urllib.quote

2005-09-13 Thread Chris Withers
(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.

Re: [Zope-dev] Re: Speed win in Python's urllib.quote

2005-09-13 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris Withers wrote: > 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 >> a