 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Sun Dec 21, 2008 2:46 pm Post subject: |
|
|
| xazax wrote: | | If we use setformat the speed will be the same, slower or still a bit faster than before? | Even a script that uses "SetFormat Integer" is likely to run faster with this version, especially if it uses a lot of complex expressions.
The next release should have a new mode for SetFormat that avoids sacrificing any performance. This new mode may slightly change the behavior of SetFormat so that it takes effect only when a script does something that requires a numeric variable to be converted to text. |
|
| Back to top |
|
 |
Supercalifragilistic Guest
|
Posted: Sun Dec 21, 2008 4:44 pm Post subject: |
|
|
May be one bug ?
I tried and I had an error message.
The line is OK only if I write :
With the precedent version, such a line wasn't an error. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Sun Dec 21, 2008 6:53 pm Post subject: |
|
|
| I changed EnvSub (-=) to require two parameters so that it is consistent with EnvAdd and also to speed up the runtime evaluation. Is the purpose of leaving the right side blank to convert a blank variable to zero? If so, is it common enough that it should continue to be allowed? |
|
| Back to top |
|
 |
Drugwash
Joined: 07 Sep 2008 Posts: 921 Location: Ploiesti, RO
|
Posted: Sun Dec 21, 2008 10:58 pm Post subject: |
|
|
The way I see it, the Var -= expression would be a direct equivalent to Var --. A blank variable could automatically get the value of -1 (MOV AX, 0 DEC AX). _________________ AHK tools by Drugwash |
|
| Back to top |
|
 |
Supercalifragilistic Guest
|
Posted: Mon Dec 22, 2008 6:04 pm Post subject: |
|
|
| Chris wrote: | | I changed EnvSub (-=) to require two parameters so that it is consistent with EnvAdd and also to speed up the runtime evaluation. Is the purpose of leaving the right side blank to convert a blank variable to zero? If so, is it common enough that it should continue to be allowed? | No problem for me, Chris. I was just used to do that way. Thanks for the explanation. |
|
| Back to top |
|
 |
tamalemexican Guest
|
Posted: Tue Dec 23, 2008 7:36 pm Post subject: A request |
|
|
Could you add in the ability to add author information, such as author, company, etc, I would really love to have this ability, I know NSIS has this ability. Many thanks if it can be possible.  |
|
| Back to top |
|
 |
Drugwash
Joined: 07 Sep 2008 Posts: 921 Location: Ploiesti, RO
|
Posted: Tue Dec 23, 2008 7:57 pm Post subject: |
|
|
Please check out the Compile_AHK II project, it's able to edit the VersionInfo, internal icons, compression, etc. _________________ AHK tools by Drugwash |
|
| Back to top |
|
 |
jak
Joined: 28 Feb 2006 Posts: 159
|
Posted: Sun Dec 28, 2008 5:52 am Post subject: |
|
|
hi gang,
Dont know how useful this feedback will be since I havent done any extensive testing, but I did download the beta and tried it out. Initially it worked great, and the (enormous) ahk script that I have did seem snappier.
However, after about 1/2 hour of using my computer, everything slowed down to a crawl. (memory leak?). Shutdown took 7 minutes. On reboot, same thing, works well for maybe 15 minutes, then everything crawls. Tried removing other stuff in my startup folder, no difference. Replaced autohotkey.exe with the previous working version and voila everything is fine now.
I cant say for sure if it was this beta's fault because I was working on stuff for work and didnt (and dont really) have too much time to diagnose, I downloaded it out of curiosity and I do think it made my script run faster. If you want any specific information that I could provide, please ask (and please keep in mind I'm not any kind of computer expert, just a noodler).
Thanks!
P.s., WinXP, SP3, 1.7ghz pentium M, 2gb RAM, 80gb hard drive with about 30gb free, and an extremely large ahk file that does everything I can imagine. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Sun Dec 28, 2008 9:10 pm Post subject: |
|
|
If it is a memory leak large enough to cause the symptoms you describe, that could be easily verified via Task Manager. Otherwise, since your script appears to be the only one tested so far that has this issue, perhaps the nature of this particular script has something to do with it (e.g. GUI/GDI/resource usage or having more than a few million dynamic variables).
The scripts I run 24/7 show no signs of a memory leak. Also, the beta version has successfully run an extensive series of automatic tests.
Anyway, thanks for the report. I'll keep an eye out for anything that can confirm or reproduce this issue. |
|
| Back to top |
|
 |
jak
Joined: 28 Feb 2006 Posts: 159
|
Posted: Sun Dec 28, 2008 10:57 pm Post subject: |
|
|
| Chris wrote: | If it is a memory leak large enough to cause the symptoms you describe, that could be easily verified via Task Manager. Otherwise, since your script appears to be the only one tested so far that has this issue, perhaps the nature of this particular script has something to do with it (e.g. GUI/GDI/resource usage or having more than a few million dynamic variables).
The scripts I run 24/7 show no signs of a memory leak. Also, the beta version has successfully run an extensive series of automatic tests.
Anyway, thanks for the report. I'll keep an eye out for anything that can confirm or reproduce this issue. |
When I get a chance I'll switch back to the beta and see if it happens again, and if it does, I'll check memory/process/cpu usage using taskmanager and process explorer. I'll report if I find anything interesting.
Thanks Chris! |
|
| Back to top |
|
 |
tamalemexican Guest
|
Posted: Tue Dec 30, 2008 2:20 am Post subject: Would it be possible... |
|
|
Would it be possible to add the ability to directly save a registry string? I know you can delete registry values, write to them, and read them, but it would be great to be able to have an ability to directly be able to save them as .reg files to a location of your choice. So that away you dont have to do a whole bunch of other commands to do this when you could just have one command do it.  |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Tue Dec 30, 2008 3:24 am Post subject: |
|
|
| Laszlo wrote: | | ...could you post such an AutoHotkeySC.bin? It would be very nice to provide the speedups to people, who don't have AHK installed. | Also, several of my friends use my large compiled AHK scripts, so we could see the results of many more tests with the right AutoHotkeySC.bin. Any chance to get it, Chris? |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Tue Dec 30, 2008 3:07 pm Post subject: |
|
|
No problem. I would have posted it originally had I realized how long it would take to find time to finish the next release.
For those who would like to compile scripts with this beta version, unzip the following file in your \Program Files\AutoHotkey\Compiler folder:
www.autohotkey.com/misc/AutoHotkey-Pre-1.0.48-BIN-new.zip (240 KB)
Last edited by Chris on Wed Dec 31, 2008 1:53 am; edited 1 time in total |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Tue Dec 30, 2008 3:51 pm Post subject: |
|
|
| Thanks! The first test result: a 10,000 line compiled, real-time script full of dll calls, callback functions, timers, etc. works perfectly on two different computers (XP, Vista-32). |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Wed Dec 31, 2008 1:53 am Post subject: |
|
|
| The compiler/BIN file link above has been fixed on 12/30/2008 so that the /NoDecompile switch works. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|