I have a code wich is parsing as string I want to parse in substring as fast as possible :
Code: Select all
For i=1 to Len(str_Tag) step istep
Str_tmp=Mid(str_Tag,i, istep)
..
Next i
Code: Select all
Dim hlen as ubyte=3
Dim str_Tag as string= "abcdefghijklm"
Dim As ZString Ptr zp1
Dim As ZString Ptr zp2
Dim As ZString Ptr zp3=Allocate(1)
Dim As ZString Ptr Listptemp=Allocate(Len(str_Tag)*2+2)
Dim i as integer
Dim k as integer
For k=1 To 1 '00000 ' speed test
*Listptemp=str_Tag
zp1=Listptemp
'For i=0 to Fix(Len(str_Tag)/hlen) step hlen
For i=1 to Len(str_Tag) step hlen
zp2=zp1
zp1+=hlen
*zp3=*zp1
*zp1=0
Print *zp2
*zp1=*zp3
Next i
Next k
Deallocate(Listptemp)
'Deallocate(zp3)
Print "Fin OK"
sleep : system
Does anyone having any idea may going faster ?
ps : small issue deallocating zp3 (0.23/W7 32 bits)