[Python-Dev] str.count is slow

Armin Rigo arigo at tunes.org
Sun Mar 12 16:26:13 CET 2006


Hi Ben,

On Mon, Feb 27, 2006 at 06:50:28PM -0500, Ben Cartwright wrote:
> > It seems to me that str.count is awfully slow.  Is there some reason
> > for this?

stringobject.c could do with a good clean-up.  It contains very similar
algorithms multiple times, in slightly different styles and with
different performance characteristics.

If I find some motivation I'll try to come up with a patch.


A bientot,

Armin


More information about the Python-Dev mailing list