AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help!! performance - Convert a Script to an EXE (ahk2exe)

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
myscript



Joined: 05 Jul 2007
Posts: 14

PostPosted: Fri Sep 07, 2007 6:03 pm    Post subject: Help!! performance - Convert a Script to an EXE (ahk2exe) Reply with quote

Hi all,
I have seen in the help file this:
Quote:
The compilation process compresses and encrypts all of the following: the script, any files it includes, and any files it has incorporated via the FileInstall command.

I have only the script and no other file
The script is very big (have 3000 rows and 22 gui)
When I run my script (i.e. name.ahk) i see the first gui after 2 seconds
When I run my script (i.e. name.exe 213KB) the first gui appears after 7-8 seconds

In the help file...
Quote:
Compiling does not improve the performance of a script. In fact, a compiled script is slightly slower to launch because it must first be decrypted and decompressed into memory, after which it is optimized just like a normal script

I would like to know if there is a possible to have maybe a size of the exe file much big than this one (213KB) but with much performance when I run it.

I can't install the file autohotkey.exe in the computer where i use this script
If someone know a solution is appreciated...thanks all Very Happy
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Fri Sep 07, 2007 6:09 pm    Post subject: Reply with quote

Decompress your exe, i.e. run upx -d name.exe
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
myscript



Joined: 05 Jul 2007
Posts: 14

PostPosted: Fri Sep 07, 2007 6:32 pm    Post subject: Reply with quote

I try with upx.exe (from upx301w.zip) version 3.1.0.0 but, after the decompression i receive the msgbox "exe corrupted"
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5068
Location: imaginationland

PostPosted: Fri Sep 07, 2007 6:44 pm    Post subject: Reply with quote

Oh sorry, you can't do it that way. Instead rename or delete upx from the ahk2exe directory before you compile your script.
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
myscript



Joined: 05 Jul 2007
Posts: 14

PostPosted: Fri Sep 07, 2007 6:59 pm    Post subject: Reply with quote

thanks lot
but it reduce the time only of 1 seconds

There's another solution ?
Back to top
View user's profile Send private message
daonlyfreez



Joined: 16 Mar 2005
Posts: 745
Location: Berlin

PostPosted: Fri Sep 07, 2007 7:04 pm    Post subject: Reply with quote

Performance
_________________
(sorry, homesite offline atm)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group