>>CLEAR >>SET ESCAPE ON >>FOR n=12 TO 24 >> lcStr = SPACE(2^n-32) >>? 'lenght',LEN(lcStr) >> ltStart = seconds() >> lcX = chrtran( replicate( '*', 2^n-32), lcStr , lcStr ) >>?? seconds() - ltStart >>next >>>>with a 256K string you have to kill the process.
>>CLEAR >>SET ESCAPE ON >>FOR n=12 TO 24 >> lcStr = SPACE(2^n-32) >>? 'lenght',LEN(lcStr) >> ltStart = seconds() >> lcX = chrtran( replicate( '*', 2^n-32), lcStr , lcStr ) >>?? seconds() - ltStart >>next >>>>with a 256K string you have to kill the process.
CLEAR x=replicate( '*', 2^24-32) t1=SECONDS() FOR k=1 TO 100 =x NEXT ? 'variable',SECONDS()-t1 t1=SECONDS() FOR k=1 TO 100 =replicate( '*', 2^24-32) NEXT ? 'replicate', SECONDS()-t1Study and Abstraction, wants more study and abstraction.