[Python-Dev] str.count is slow (original) (raw)
Fredrik Lundh fredrik at pythonware.com
Tue Feb 28 01:24:50 CET 2006
- Previous message: [Python-Dev] str.count is slow
- Next message: [Python-Dev] str.count is slow
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
martin at v.loewis.de wrote:
> it's about time that someone sat down and merged the string and unicode > implementations into a single "stringlib" code base (see the SRE sources for > an efficient way to do this in plain C). [1] [...] > 1) anyone want me to start working on this ?
This would be a waste of time: In Python 3, the string type will be gone (or, rather, the unicode type, depending on the point of view).
no matter what ends up in Python 3, you'll still need to perform operations on both 8-bit buffers and Unicode buffers.
(not to mention that a byte type that doesn't support find/split/count etc is pretty useless).
- Previous message: [Python-Dev] str.count is slow
- Next message: [Python-Dev] str.count is slow
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]