Is String's subscript O(n) when given a lot of combining code points?

FWIW, even this loop alone:

    for character in string {
    }

takes 1.3 second on my M1 Pro, -O

1 Like