#!/usr/local/bin/zsh

emulate -LR zsh

str=""

i=30000
while (( i -- )); do
    str[1,0]="wfei"
done
#echo "$str" > input


#char="–"
char="¥"
#char="Ń"
#char="Ł"
#char="Ǎ"
#char="Ǟ"

str[60]=$char
time ( out_array=( "${str//(#bi)wfeiwj/a}" ) )
str[60]="a"

str[10000]=$char
time ( out_array=( "${str//(#bi)wfeiwj/a}" ) )
str[10000]="a"

str[50000]=$char
time ( out_array=( "${str//(#bi)wfeiwj/a}" ) )
str[50000]="a"

str[100000]=$char
time ( out_array=( "${str//(#bi)wfeiwj/a}" ) )
str[100000]="a"

