UEZ Posted July 31, 2013 Share Posted July 31, 2013 (edited) Back to the performance thing. Eukalyptus discovered that the For/Next loop is slower in the beta version. I changed almost all for/next loops from the benchmark in post #64 and can confirm that with do/until loop nearly both versions are at same speed. Here a short test. Beta is approx. 25% slower on my system:$j = 0 $iMax = 50000000 $t = TimerInit() For $i = 0 To $iMax $j += 1 Next $fEnd = TimerDiff($t) / 1000 ConsoleWrite(StringFormat("%.2f seconds.", $fEnd) & @LF)Here my results:3.3.8.1: 10.85 seconds.3.3.9.13: 13.17 seconds.Br,UEZ Edited July 31, 2013 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 31, 2013 Moderators Share Posted July 31, 2013 Hi,My results from testing that script:3.3.8.1 => ~20 sec3.3.9.4 => ~18 sec3.3.9.13 => ~25 secM23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
FireFox Posted July 31, 2013 Share Posted July 31, 2013 My results : 3.3.8.1 => 8.54 sec 3.3.9.13 => 10.98 sec Link to comment Share on other sites More sharing options...
czardas Posted July 31, 2013 Share Posted July 31, 2013 (edited) Incorrect, Actually the number 2 + 3 (5) will be converted to a string for the comparison. That's because of == operator: I agree with you - Jaberwocky6669 was >confusing me. Somebody once described this operator to me as matching exact equal values and I presumed case sensitivity to just be one of many applications. This operator should only be used for string comparisons that need to be case sensitive. Why? ; ConsoleWrite ((.999999999999999999999 == 1.00000000000000000001) & @LF) ; True ConsoleWrite ((.999999999999999999999 = 1.00000000000000000001) & @LF) ; True ; I realise I was wrong about how the case statement comparison is made, although I did say I imagine how it might work - and we are compairing strings with numbers. Because AutoIt is closed source I don't know exactly how Case statements work - there could be exceptions or special matching criteria I am not aware of. Thanks for correcting me all the same. Edited July 31, 2013 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Danyfirex Posted July 31, 2013 Share Posted July 31, 2013 I agree with you - Jaberwocky6669 was >confusing me. Somebody once described this operator to me as matching exact equal values and I presumed case sensitivity to just be one of many applications. Why? ; ConsoleWrite ((.999999999999999999999 == 1.00000000000000000001) & @LF) ; True ConsoleWrite ((.999999999999999999999 = 1.00000000000000000001) & @LF) ; True ; I realise I was wrong about how the case statement comparison is made, although I did say I imagine how it might work - and we are compairing strings with numbers. Because AutoIt is closed source I don't know exactly how Case statements work - there could be exceptions or special matching criteria I am not aware of. Thanks for correcting me all the same. Put .999999999999999999999 in a calculator press = it became in 1. both .999999999999999999999 and 1.00000000000000000001 are 1. saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
FaridAgl Posted July 31, 2013 Share Posted July 31, 2013 @czardas: Because it's documented in this way: http://www.autoitscript.com/autoit3/docs/intro/lang_operators.htm http://faridaghili.ir Link to comment Share on other sites More sharing options...
Mat Posted July 31, 2013 Share Posted July 31, 2013 For IEEE754, the closest you can get to 1.0 without actually being 1.0 would be all the bits set in the mantissa and the exponent being -1. That would mean about 0.9999999999999997... for a double. Anything greater than that (but less than 1) is rounded to 1.0 by the floating point processor. You might get a little bit more as most computers nowadays use 80bit floats (double extended precision). Just thought you might be interested. AutoIt Project Listing Link to comment Share on other sites More sharing options...
Digisoul Posted July 31, 2013 Share Posted July 31, 2013 Why I am getting below error whenever I try to compile the script in Scite? Error: Unable to add resources. C:Users****AppDataLocalTemp~AU3rlgeppu.exe I am running Scite as "Run as administrator" mode. AutoIt: 3.3.9.13 OS: Win 8 x64 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
trancexx Posted July 31, 2013 Share Posted July 31, 2013 (edited) Wait, temp file is in %temp% again? I thought Jon has cahnged that. Do you perhaps have temp directory Digisoul opened with explorer during compilation? Edited July 31, 2013 by trancexx ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
czardas Posted July 31, 2013 Share Posted July 31, 2013 (edited) @czardas: Because it's documented in this way: http://www.autoitscript.com/autoit3/docs/intro/lang_operators.htm Ah well, I'm not sure I entirely trust the documentation. The above example I posted doesn't balk at all. It works like a charm, making correct comparisons, and therefore it's a nice and flexible catch-all operator. If type coersion was not at play, then I would agree with you. It seems we've veered away from the topic with this. Edited July 31, 2013 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
BrewManNH Posted July 31, 2013 Share Posted July 31, 2013 Actually having a case sensitive comparison makes it inflexible, not flexible. Your example worked because it was comparing the strings as numbers, it's one of the idiosyncrasies of having variants. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
czardas Posted July 31, 2013 Share Posted July 31, 2013 (edited) Case sensitivity isn't the issue. It has the same flexibility as the standard equals operator in the following way: It is flexible because you don't need to test the data type in order to know which operator to use to make a comparison. That saves a lot of code. Edited July 31, 2013 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
BrewManNH Posted July 31, 2013 Share Posted July 31, 2013 You don't need to test the data type with = either, so I'm not getting your point. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
czardas Posted July 31, 2013 Share Posted July 31, 2013 (edited) My point is what I said: It has the same flexible usage (not limited to strings) - simply that. Edited July 31, 2013 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Digisoul Posted July 31, 2013 Share Posted July 31, 2013 Do you perhaps have temp directory Digisoul opened with explorer during compilation? No symptoms like this, just error, but with 3.3.8.1 everything is fine. 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
wraithdu Posted July 31, 2013 Share Posted July 31, 2013 Why I am getting below error whenever I try to compile the script in Scite? I am running Scite as "Run as administrator" mode. AutoIt: 3.3.9.13 OS: Win 8 x64 Wait, temp file is in %temp% again? I thought Jon has cahnged that. Do you perhaps have temp directory Digisoul opened with explorer during compilation? AutoIt3Wrapper still uses %temp% by default. The beta has my patch where you can set the temp dir yourself. I don't know why your resource update is failing, but that's why the temp file is in %temp%. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 31, 2013 Developers Share Posted July 31, 2013 (edited) Looks to me like an AUT2EXE error, not the AutoIt3Wrapper error. Scratch that ... the error is AUT2EXE but indeed Autoit3Wrapper could have give the target EXE in on the commandline. Jos Edited July 31, 2013 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Digisoul Posted July 31, 2013 Share Posted July 31, 2013 AutoIt3Wrapper still uses %temp% by default. The beta has my patch where you can set the temp dir yourself. I don't know why your resource update is failing, but that's why the temp file is in %temp%. Can you please point the directions to set the temp path ? 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
Developers Jos Posted July 31, 2013 Developers Share Posted July 31, 2013 (edited) Can you please point the directions to set the temp path ? Are you using the latest Beta version available of Autoit3Wrapper? Add the following to AutoIt3Wrapper.ini in the AutoIt3Wrapper directory. [Other] TempDir=%USERPROFILE% Edited July 31, 2013 by Jos Digisoul 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Digisoul Posted July 31, 2013 Share Posted July 31, 2013 Are you using the latest Beta version available of Autoit3Wrapper? Thanks, I was using old version of Autoit3Wrapper, because I did not faced such issue in 3.3.9.12 Beta. Even after updating the new version from "beta_SciTE4AutoIt3" link, still getting the error, console showed: !> Aut2exe.exe ended errors because the target exe wasn't created, abandon build. (C:\Users\***\AppData\Local\Temp\~AU3lobqafz.exe)rc:9999 73 108 111 118 101 65 117 116 111 105 116 Link to comment Share on other sites More sharing options...
Recommended Posts