boomingranny Posted May 20, 2020 Share Posted May 20, 2020 My script was running slow, taking twice as long to do things, I narrowed it down to FileOpenDialog, basically, the code before FileOpenDialog is fast, the code after FileOpenDialog is not. I tried on another computer and it is fine, so there is SOMETHING on one computer that makes this slow, that isn't on the other, as for what, I am unsure. I restarted and just opened scite and ran my script, and got the following performance: Here is a test script: ConsoleWrite (@OSVersion& @CRLF) ConsoleWrite(@AutoItVersion & @CRLF) CodeSpeedTest() FileOpenDialog("Select file",Default,"All files (*.*)") CodeSpeedTest() Func CodeSpeedTest() $timer = TimerInit() for $i = 1 to 1000000 Next ConsoleWrite("TimeMS: " &TimerDiff($timer)&@CRLF) EndFunc WIN_10 3.3.14.5 TimeMS: 37.6779 TimeMS: 1370.7758 So my code becomes really really slow, after a file open dialog is used Same issue with beta: WIN_103.3.15.0 TimeMS: 37.0215 TimeMS: 1144.126 and with autoit 64 bit: WIN_10 3.3.14.5 TimeMS: 41.1646 TimeMS: 1043.1669 Any suggestions? Is it the same for anyone else? On my desktop the above occurs, on my laptop it is fine... Link to comment Share on other sites More sharing options...
boomingranny Posted May 20, 2020 Author Share Posted May 20, 2020 slowness also occurs with an inputbox... Link to comment Share on other sites More sharing options...
argumentum Posted May 20, 2020 Share Posted May 20, 2020 (edited) ..try the new and improved beta. It fixes this problem. - WIN_10 ( FileGetVersion("WinVer.exe") = 10.0.14393.0 ) - @AutoItVersion = 3.3.14.5 - TimeMS: 26.9179417943872 - TimeMS: 23.5783072812843 - WIN_10 ( FileGetVersion("WinVer.exe") = 10.0.14393.0 ) - @AutoItVersion = 3.3.15.3 - TimeMS: 15.2403032434683 - TimeMS: 15.0289094212104 Edit: ...sorry, I was in the wrong PC to test that, BRB Edited May 20, 2020 by argumentum oops boomingranny 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
argumentum Posted May 20, 2020 Share Posted May 20, 2020 ConsoleWrite ("- " & @OSVersion& ' ( FileGetVersion("WinVer.exe") = ' & FileGetVersion("WinVer.exe") & " )"& @CRLF) ConsoleWrite("- @AutoItVersion = " & @AutoItVersion & @CRLF) CodeSpeedTest() FileOpenDialog("Select file",Default,"All files (*.*)") CodeSpeedTest() Func CodeSpeedTest() $timer = TimerInit() for $i = 1 to 1000000 Next ConsoleWrite("- TimeMS: " &TimerDiff($timer)&@CRLF) EndFunc ;~ - WIN_10 ( FileGetVersion("WinVer.exe") = 10.0.18362.1 ) ;~ - @AutoItVersion = 3.3.14.5 ;~ - TimeMS: 32.9974 ;~ - TimeMS: 676.0522 ;~ - WIN_10 ( FileGetVersion("WinVer.exe") = 10.0.18362.1 ) ;~ - @AutoItVersion = 3.3.15.3 ;~ - TimeMS: 18.4056 ;~ - TimeMS: 18.9169 ..yes v. 3.3.15.3 works fine boomingranny 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now