Changes by Andres Moreira :
--
nosy: +andrix
___
Python tracker
<http://bugs.python.org/issue7946>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andres Moreira :
Hi,
using ipython2.5 in Ubuntu 9.04. I've get this traceback:
In [1]: max?
---
NameError Traceback (most recent call last)
/var/lib/python-su
Andres Moreira added the comment:
Yes are micro-optimizations, but when I parsed a lot of url(10.000 or
more) that 10% or 8% or 5% is very well for me :). It was little
contribution to that module, anyway, i think that there are more
optimizatoins to do but I will try to do it then
Andres Moreira added the comment:
Hi haypo,
sorry for submit all the file, it's my first time here and I'm not very
used to this process yet. :)
Now I attach the patch.
--
keywords: +patch
Added file: http://bugs.python.org/file12744/urlp
Andres Moreira added the comment:
And that is the profile code.
Added file: http://bugs.python.org/file12743/profile_urlparse.py
___
Python tracker
<http://bugs.python.org/issue4
Andres Moreira added the comment:
Hi haypo,
Ok I've been testing with python 2.6 and I put the results here:
optimizedurlparse is the file with my patch
First test optimizedurlparse, second urlparse:
#:/opt/python2.6/release26-maint$ ./python mio/profile_urlparse.py
t
New submission from Andres Moreira :
Hi,
I make a little change in the urlsplit function of urlparse module. And
the performance when I'm parsing a lot of urls was improved a bit.
In the best case was improved around a 20% percent.
Python version:
2.5.2 (r252:60911, Oct 5 2008, 19: