AutoHotkey Community

It is currently May 27th, 2012, 10:54 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2

Should compiled scripts be reduced in size by 9% even if a small amount of performance is lost?
Poll ended at December 2nd, 2004, 2:04 pm
Yes 0%  0%  [ 0 ]
No 93%  93%  [ 26 ]
Other 7%  7%  [ 2 ]
Total votes : 28
Author Message
 Post subject:
PostPosted: May 13th, 2005, 9:48 pm 
Offline

Joined: September 7th, 2004, 9:20 pm
Posts: 275
Location: France
Chris wrote:
It's a worthwhile goal. The reason I don't assign a high priority to it is that it would be yield comparatively little benefit when weighed against the large investment in time it would be require. For example, adding features such as more GUI control types, wildcards, and scheduling probably have more popular appeal than devoting lots of effort to reducing the size of compiled EXEs.

Perfectly agree !!!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2005, 4:18 am 
Offline

Joined: July 3rd, 2004, 1:03 pm
Posts: 121
To me the size is not really an issue, because everything around the .exe be it hard drives, RAM, CPU's, etc... keep getting bigger and faster. Trying to cram everything into the smallest size at the expense of performance is a waist of time.

I value the performance and CAPABILITY of AutoHotKey OVER its size. Keep making AutoHotKey BETTER and have size as a secondary consideration AFTER the "good stuff" is added.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 20th, 2005, 7:49 pm 
Offline

Joined: August 15th, 2005, 2:57 pm
Posts: 57
AHKnow wrote:
Keep making AutoHotKey BETTER and have size as a secondary consideration AFTER the "good stuff" is added.


You got my vote!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 20th, 2005, 10:41 pm 
Offline

Joined: August 5th, 2005, 4:25 am
Posts: 10
I love the simplicity of AH. In it's current form I could see the exe growing considerably without it being an issue. The ease with which you can deploy AH to a computer is really important. It really set's it apart from the competition.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 20th, 2005, 11:02 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
Although IMO a 9% decrease in size is not worth a loss in performance, conditional compiling would be a significant improvement...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 21st, 2005, 12:45 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
corrupt wrote:
conditional compiling would be a significant improvement...
If you mean the ability to exclude the code for commands and features the script doesn't use, that would be ideal. However I think it would require very specialized knowledge -- something only people who've developed real compilers would tend to have. Even with the right knowledge, applying it to ahk2exe might be quite time-consuming.

I appreciate the suggestion. Maybe an expert will see it someday and volunteer some time.

EDIT: The 9% reduction mentioned at the top of this topic was done several months ago. This is because a series of benchmarks showed that the reduction could be achieved without sacrificing performance. This was achieved by compiling performance-sensitive parts of AutoHotkeySC.bin with "maximize speed", but compiling everything else with “minimize size”.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 18th, 2008, 10:47 am 
Offline

Joined: September 16th, 2008, 1:40 pm
Posts: 11
I use AutoHotkeySC.bin below:
Quote:
Reduce the size of compiled scripts by about 20 KB: Place this smaller version of the AutoHotkeySC.bin file in your AutoHotkey\Compiler folder (overwriting the existing file of the same name). Any compiled script produced in this fashion will be dependent on MSVCRT.dll. Although this DLL is always present on Windows 2000/XP or later, older operating systems do not necessarily have it.

and I delete all Resources in AutoHotkeySC.bin using Resource Hacker:
Code:
ResHacker.exe -delete AutoHotkeySC.bin,AutoHotkeySC.bin,,,


Then the size of compiled scripts reduced by 25 KB.Is this will caused different performance?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 18th, 2008, 11:25 am 
Offline

Joined: February 28th, 2008, 8:02 pm
Posts: 100
Location: Krk, PL
tireless wrote:
I use AutoHotkeySC.bin below:
Quote:
Reduce the size of compiled scripts by about 20 KB: Place this smaller version of the AutoHotkeySC.bin file in your AutoHotkey\Compiler folder (overwriting the existing file of the same name). Any compiled script produced in this fashion will be dependent on MSVCRT.dll. Although this DLL is always present on Windows 2000/XP or later, older operating systems do not necessarily have it.

and I delete all Resources in AutoHotkeySC.bin using Resource Hacker:
Code:
ResHacker.exe -delete AutoHotkeySC.bin,AutoHotkeySC.bin,,,


Then the size of compiled scripts reduced by 25 KB.Is this will caused different performance?

No.

_________________
Benjamin Franklin wrote:
Anyone who trades liberty for security deserves neither liberty nor security.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group