Slooooow

Coding + IDE + Code-Editor + Syntax + User-Functions + Anything else

Slooooow

Postby Henning » Sun Jan 13, 2013 12:36 am

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
Henning
 
Posts: 523
Joined: Fri Aug 13, 2010 6:29 pm

Re: Slooooow

Postby Slowdown » Sun Jan 13, 2013 7:26 am

How big is s ?
will compare it here if you like :?:
Kind regards,
Slowdown

OSX 10.8.x, VBox Xp, Ubuntu 32/64 bit, EOS 64 bit
Slowdown
 
Posts: 465
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands

Re: Slooooow

Postby Slowdown » Sun Jan 13, 2013 9:13 am

Did a small test with your code,
String ss contains indeed 23424 random characters.
Slooow.png
Slooow.png (6.71 KiB) Viewed 859 times

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

Something is not going right in your code :shock:
Kind regards,
Slowdown

OSX 10.8.x, VBox Xp, Ubuntu 32/64 bit, EOS 64 bit
Slowdown
 
Posts: 465
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands


Return to Questions & Answers

Who is online

Users browsing this forum: No registered users and 0 guests

cron