Developers Jos Posted August 27, 2009 Developers Posted August 27, 2009 (edited) Very surprising! That's 16% difference!! If that's true then Obfuscator should have new option for this optimization. Obfuscator already has an undocumented option called /om or /Obfuscate_minimum. Try obfuscation with: #Obfuscator_Parameters=/sf /sv /om /cs=0 /cn=0 That should rename all Variables and Funcs to a shorter version and strip the unused Funcs and Global variables, but doesn't do any other obfuscation tasks. Curious if anybody have any test results with this option. Edited August 27, 2009 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.
Zedna Posted August 27, 2009 Posted August 27, 2009 @Jos Great, thanks Jos! Can you please document these undocumented options for next version? Resources UDF ResourcesEx UDF AutoIt Forum Search
Developers Jos Posted August 27, 2009 Developers Posted August 27, 2009 Can you please document these undocumented options for next version?Already done >_< 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.
WolfWorld Posted August 27, 2009 Author Posted August 27, 2009 Already done I will need to always make my program better please check out Eat Spaghetti. Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets!
Bowmore Posted August 27, 2009 Posted August 27, 2009 (edited) Very surprising! That's 16% difference!!If that's true then Obfuscator should have new option for this optimization.I tend to use fairly long descriptive names in my code.I've done my own experimenting and found the replacing my long variable and function names by 2 to 3 character names gives up to 20% speed improvements, especially in intensive loops.If your code spends most of it's time idling in a message loop waiting for the user to click on the gui then there is little to gain.I would agree with you that Obfuscator would be the best place to implement this as virtually all the required functionality is already exist.Edit: I should have read the whole thread before posting Edited August 27, 2009 by Bowmore "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook
vmars Posted August 28, 2009 Posted August 28, 2009 And Why is it that every topic I open there is going to be a fight or something similar!Yes, i've noticed that too. Maybe we should ask 'ourselves' "how have i helped (benifitted) this person?" Before we actually POST. And if we can't answer that in a positive way.ReWite it until it is helpful, before POSTing. Thanks..vm
WolfWorld Posted August 28, 2009 Author Posted August 28, 2009 (edited) Yes, i've noticed that too. Maybe we should ask 'ourselves' "how have i helped (benifitted) this person?" Before we actually POST. And if we can't answer that in a positive way.ReWite it until it is helpful, before POSTing. Thanks..vmI agree with you 100%! People should be ban for posting useless stuff not just bad stuff. Edited August 28, 2009 by athiwatc Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets!
TouchOdeath Posted September 23, 2009 Posted September 23, 2009 Long function names also slow down your scripts. $nBegin = TimerInit() For $i = 1 To 10000000 short() Next ConsoleWrite(TimerDiff($nBegin) & @CRLF) $nBegin = TimerInit() For $i = 1 To 10000000 VeryMuchLongerFunctionName() Next ConsoleWrite(TimerDiff($nBegin) & @CRLF) Func short() EndFunc Func VeryMuchLongerFunctionName() EndFunc Results: Short: 14401.1765668076 Long: 16757.6862859434
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