Swift Forums
Is String's subscript O(n) when given a lot of combining code points?
Using Swift
tera
October 17, 2023, 12:55pm
29
FWIW, even this loop alone:
for character in string { }
takes 1.3 second on my M1 Pro, -O
1 Like
show post in topic