Micro Python -- a lean and efficient implementation of Python 3
Tim Chase
python.list at tim.thechases.com
Wed Jun 4 08:21:23 EDT 2014
On 2014-06-04 12:53, Robin Becker wrote:
> > If you use UTF-8 for everything, then you end up in a world where
> > string-indexing (see ChrisA's other side thread on this topic) is
> > no longer an O(1) operation, but an O(N) operation. Some of us
> > slice strings for a living. ;-)
> ........
> I believe that we should distinguish between glyph/character
> indexing and string indexing.
I'm only talking about string indexing using my_string[some_slice]
which is traditionally O(1) and breaking that [cw]ould cause
unexpected performance degradation.
-tkc
More information about the Python-list
mailing list