Gentlemen,
the code below yield the following result on my PC (asus laptop with lubuntu):
10 0.000
100 0.000
1000 0.014
10000 1.125
100000 125.365
This means that for strings below 1000 characters the speed of processing sufficient high from my point of view. I think the majority of processed strings are inputs from forms that have less than 1000 characters.
My suggestion:
If we need faster strings a second class of "longstrings" should be defined with the length attached. This should be the real feature request.
But the usual string should be kept. Why?
Because in cases of memory faults, maybe in the string length bytes, the processing will fail and/or we might have a security problem.
Comments?
Code: Select all
OpenConsole()
Str.s
#Text = "1234567890"
mstart =1
y = Int(Pow(10,mstart))
Time = ElapsedMilliseconds()
For i=1 To 100010
Str + #Text
If i = y
PrintN(Str(i)+" "+StrF((ElapsedMilliseconds()-Time)/1000, 3))
mstart = mstart + 1
y = Int(Pow(10,mstart))
Time = ElapsedMilliseconds()
EndIf
Next i
Print( "ende")
Input()
Greetings
LN