Jump to content

Autoit Optimize


WolfWorld
 Share

Recommended Posts

  • Developers

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 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

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 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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

I agree with you 100%! People should be ban for posting useless stuff not just bad stuff.

Edited by athiwatc
Link to comment
Share on other sites

  • 4 weeks later...

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
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...