Page 1 of 1

Slooooow

PostPosted: Sun Jan 13, 2013 12:36 am
by Henning
Hi

Windows XP, AMD x4 4800+, 4G of RAM.
Following takes almost 10 sec. when run in the IDE for an 18 byte string!!?? :o

Code: Select all
    For i = 0 To Len(s) - 1
      ss = ss & Right("00" & Hex(Asc(Mid(s, i, 1))), 2) & " "
    Next
    MainWindow.lineEdit_1.Text = ss


/Henning

Re: Slooooow

PostPosted: Sun Jan 13, 2013 7:26 am
by Slowdown
How big is s ?
will compare it here if you like :?:

Re: Slooooow

PostPosted: Sun Jan 13, 2013 9:13 am
by Slowdown
Did a small test with your code,
String ss contains indeed 23424 random characters.
Slooow.png
Slooow.png (6.71 KiB) Viewed 858 times

Edit: note to myself ; first learn to read :(
an 18 byte string!!??

Something is not going right in your code :shock: