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

2005-09-12 Thread Chris Withers

Tres Seaver wrote:

Zope makes *heavy* use of urllib.quote (quoting each element of the path
in 'absolute_url', for instance), which makes it a particularly
interesting speedup for us.


Indeed, what would be the reasons for NOT including it?
How should we go about measuring the speed difference this makes?


I'm attaching the speed test and the patch, for consideration by the
Zope development community:  if this is enough of a win, we might
consider including a patched urllib in Zope2/Zope3 (or monkey-patching
urllib.quote).


FWIW, I'd favour a monkey patch of ulrlib.quote, pending inclusion of 
the patch into the Python source tree, which is something we should all 
be fighting for ;-)


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com



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

2005-09-12 Thread Lennart Regebro
On 9/12/05, Chris Withers [EMAIL PROTECTED] wrote:
 Indeed, what would be the reasons for NOT including it?
 How should we go about measuring the speed difference this makes?

How about: http://public-bertha.in.nuxeo.com/~ben/funkload/

I've seen it demoed, but never used it. It seems very cool. It can do
functional load testing and should be able to make a reasonable test
of the speed improvement.
___
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com