Jump to content

String Expression To Integer Array


funkey
 Share

Recommended Posts

JohnOne

before shave    25.481450, 23.892422, 18.949056, 17.244091, 17.856180, 20.220447 20.607274

after shave     29.538949, 17.359468, 19.136789, 22.047774, 18.002008, 19.673170 20.959693

:)

Guess not then.

It does on my machine though, takes it from av of 7.5 to av of 4.5

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

I think a lot more needs to be added to the inital string, to get execution time-lengths up to seconds.

Millisecs are fleeting :)

 

you are right

increased the range to reduce fleeting of milliseconds

$timer = TimerInit()
$intarray = _ExpressionToIntArray("1 - 100, 101-1000, 1001 - 65500")
ConsoleWrite(TimerDiff($timer) & @LF)
; _ArrayDisplay($intarray)
exit

results:

function      run 1     run 2     run 3     run 4     run 5     run 6      average

funkey      1190.609, 1194.015, 1217.743, 1222.854, 1235.696, 1198.589    1209.917

PincoPanco   308.239,  326.004,  307.405,  312.437,  309.564,  322.482     314.355

jdelaney     340.354,  340.354,  319.145,  300.387,  308.976,  306.805     319.336

Malkey       411.786,  463.301,  419.908,  445.768,  427.177,  414.339     430.379

DXRW4E 1     440.427,  443.766,  430.230,  448.286,  440.938,  452.179     442.637

DXRW4E 2     298.653,  331.169,  310.208,  319.517,  325.902,  339.904     320.892

JohnOne 1    457.858,  440.978,  458.792,  444.899,  433.521,  453.420     448.244

JohnOne 2    461.738,  471.126,  453.635,  418.447,  467.622,  452.763     454.221

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Link to comment
Share on other sites

:)

Guess not then.

It does on my machine though, takes it from av of 7.5 to av of 4.5

 

?? strange, why on my pc there is not all that difference of performance between the two script?

What could be the matter? :think:

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Link to comment
Share on other sites

No Idea, to get around 1 second on my machine, this is the expression "1 - 100, 101-1000, 1001 - 6550, 6551 - 100000, 100000 - 600000"

EDIT:

Using your script it is around 700ms

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...