VAN0 Posted March 11, 2014 Share Posted March 11, 2014 Hello.It seems when script being compiled, the compiler includes every single constant, function, etc into the the file. Not only this blows up the final filesize, but also wastes memory when the program is running.In my tests, a script with 5 includes would become 726KB .exe file and uses up 27MB of ram when running. But when the same script cleaned up by eliminating all unused functions from these UDFs (I copied all used functions into script itself), then the final size become 353KB and uses up 13MB of ram. This is 50% difference for the same functionality.Now I'm just curious, are there any plans to optimize the compiler at all? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 11, 2014 Moderators Share Posted March 11, 2014 (edited) VAN0,There is no "compiler optimisation" as there is no real ""compiling" that takes place. But if you download and install the full SciTE4AutoIt package you get the Obfuscator tool which, when run with the StripOnly directive, removes all unused contants and functions before compilation. M23 Edited March 11, 2014 by Melba23 Typo VAN0 1 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...
Solution FireFox Posted March 11, 2014 Solution Share Posted March 11, 2014 Use these directives : #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Run_Obfuscator=y #Obfuscator_Parameters=/striponly #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** VAN0 1 Link to comment Share on other sites More sharing options...
VAN0 Posted March 12, 2014 Author Share Posted March 12, 2014 VAN0,There is no "compiler optimisation" as there is no real ""compiling" that takes place.Well, that's just cruel!j/k Thanks for the info. 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