Is there a Minify/Uglify equivalent for ahk?
-
- Posts: 175
- Joined: 24 Dec 2016, 13:16
- Location: Antarctica
Is there a Minify/Uglify equivalent for ahk?
I'm playing around with java script, and i simply love minifying code,it of course serves a practical purpose,i.e speed- in js, but i was wondering out of simple curiosity if one exists for ahk, FYI i scoured the forums before asking, plenty of obfuscation methods, but none regarding minifying, the one i found with that particular term only removes white spaces.
Outsourcing Clicks & Presses Since 2004.
Re: Is there a Minify/Uglify equivalent for ahk?
writing a minifier that goes beyond the basic strip down the whitespace is a massive undertaking for something that would essentially be useless to 99.99999999999% of the userbase
i doubt youre gonna see this come to fruition
i doubt youre gonna see this come to fruition
-
- Posts: 175
- Joined: 24 Dec 2016, 13:16
- Location: Antarctica
Re: Is there a Minify/Uglify equivalent for ahk?
Yeah probly, but there's plenty of code in these forums written as a matter of curiosity, usefulness aside, so I'm hopping someone had my curiosity b4 me. Else I might have to whip one up my self just for the hell of it...swagfag wrote:writing a minifier that goes beyond the basic strip down the whitespace is a massive undertaking for something that would essentially be useless to 99.99999999999% of the userbase
i doubt youre gonna see this come to fruition
IMO, its not really a massive undertaking, it's just removing white spaces & comments and renaming every function/call, label, variable to fewer strings and programmatically refactoring if-else statements using ternary operators and possibly concactinating successive expressions for simultaneous processing(I.e ',' prefix to successive expressions). And given all that minifiying does logically result in increased performance, so it might even have practical use.
Outsourcing Clicks & Presses Since 2004.
Re: Is there a Minify/Uglify equivalent for ahk?
sounds like the description of a massive undertaking to mebrutus_skywalker wrote:removing white spaces & comments and renaming every function/call, label, variable to fewer strings and programmatically refactoring if-else statements using ternary operators and possibly concactinating successive expressions for simultaneous processing(I.e ',' prefix to successive expressions)
also, how does minifying improve performance
-
- Posts: 175
- Joined: 24 Dec 2016, 13:16
- Location: Antarctica
Re: Is there a Minify/Uglify equivalent for ahk?
In my experience, use of ternaries(implicitly faster) and having successive expressions processed 'simultaneously',as in
Is faster than
,it's a matter of making such alterations part of minifiying a script,as expressed in my prior post.
Code: Select all
X := 4
, y := 5.888
, z := Round(y)
Code: Select all
X := 4
y := 5.888
z := Round(y)
Outsourcing Clicks & Presses Since 2004.
Re: Is there a Minify/Uglify equivalent for ahk?
what? cmon now, youre pulling my leg
-
- Posts: 175
- Joined: 24 Dec 2016, 13:16
- Location: Antarctica
Re: Is there a Minify/Uglify equivalent for ahk?
swagfag wrote:what? cmon now, youre pulling my leg
I used skan's speed test function here https://autohotkey.com/board/topic/9186 ... code-runs/ , try it your self, it wasn't conjuncture or opinion on my part,just what I observed.
If I was wrong, I would gladly like to know how, I really would.
Outsourcing Clicks & Presses Since 2004.
Re: Is there a Minify/Uglify equivalent for ahk?
youre pulling my leg
Cheersexpressions wrote:Performance: [v1.0.48+]: The comma operator is usually faster than writing separate expressions, especially when assigning one variable to another (e.g. x:=y, a:=b). Performance continues to improve as more and more expressions are combined into a single expression; for example, it may be 35% faster to combine five or ten simple expressions into a single expression.
Who is online
Users browsing this forum: garry, Google [Bot], marypoppins_1, OrangeCat, ShatterCoder and 125 guests