Curious to see alternate approach on a search/replace via regex
Demian Brecht
demianbrecht at gmail.com
Thu Feb 7 10:08:23 EST 2013
More information about the Python-list mailing list
Thu Feb 7 10:08:23 EST 2013
- Previous message (by thread): Curious to see alternate approach on a search/replace via regex
- Next message (by thread): Curious to see alternate approach on a search/replace via regex
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2013-02-06 7:04 PM, "Steven D'Aprano" <steve+comp.lang.python at pearwood.info> wrote: >I dispute those results. I think you are mostly measuring the time to >print the result, and I/O is quite slow. Good call, hadn't even considered that. >My tests show that using urlparse >is 33% faster than using regexes, and far more understandable and >maintainable. Couldn't agree more about it being more maintainable and on second thought would gladly give up a negligible performance hit for it.
- Previous message (by thread): Curious to see alternate approach on a search/replace via regex
- Next message (by thread): Curious to see alternate approach on a search/replace via regex
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list