| View previous topic :: View next topic |
| Author |
Message |
myscript
Joined: 05 Jul 2007 Posts: 14
|
Posted: Fri Sep 07, 2007 6:03 pm Post subject: Help!! performance - Convert a Script to an EXE (ahk2exe) |
|
|
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  |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Fri Sep 07, 2007 6:09 pm Post subject: |
|
|
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 |
|
 |
myscript
Joined: 05 Jul 2007 Posts: 14
|
Posted: Fri Sep 07, 2007 6:32 pm Post subject: |
|
|
| 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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Fri Sep 07, 2007 6:44 pm Post subject: |
|
|
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 |
|
 |
myscript
Joined: 05 Jul 2007 Posts: 14
|
Posted: Fri Sep 07, 2007 6:59 pm Post subject: |
|
|
thanks lot
but it reduce the time only of 1 seconds
There's another solution ? |
|
| Back to top |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 745 Location: Berlin
|
Posted: Fri Sep 07, 2007 7:04 pm Post subject: |
|
|
Performance _________________ (sorry, homesite offline atm) |
|
| Back to top |
|
 |
|