AutoHotkey Community

It is currently May 26th, 2012, 12:55 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 129 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 9  Next
Author Message
 Post subject:
PostPosted: December 21st, 2008, 3:46 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 21st, 2008, 5:44 pm 
May be one bug ?
I tried
Code:
Var -=
and I had an error message.
The line is OK only if I write :
Code:
Var -= Var

With the precedent version, such a line wasn't an error.


Top
  
Reply with quote  
 Post subject:
PostPosted: December 21st, 2008, 7:53 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 21st, 2008, 11:58 pm 
Offline
User avatar

Joined: September 8th, 2008, 12:26 am
Posts: 1048
Location: Ploieşti, RO
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 (AHK 1.0.48.05 and Win98SE)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 22nd, 2008, 7:04 pm 
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.


Top
  
Reply with quote  
 Post subject: A request
PostPosted: December 23rd, 2008, 8:36 pm 
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. :D


Top
  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2008, 8:57 pm 
Offline
User avatar

Joined: September 8th, 2008, 12:26 am
Posts: 1048
Location: Ploieşti, RO
Please check out the Compile_AHK II project, it's able to edit the VersionInfo, internal icons, compression, etc.

_________________
AHK tools by Drugwash (AHK 1.0.48.05 and Win98SE)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 28th, 2008, 6:52 am 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 28th, 2008, 10:10 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 28th, 2008, 11:57 pm 
Offline

Joined: February 28th, 2006, 8:42 am
Posts: 159
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!


Top
 Profile  
Reply with quote  
 Post subject: Would it be possible...
PostPosted: December 30th, 2008, 3:20 am 
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. :D


Top
  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2008, 4:24 am 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
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?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2008, 4:07 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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- ... IN-new.zip (240 KB)


Last edited by Chris on December 31st, 2008, 2:53 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2008, 4:51 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
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).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2008, 2:53 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
The compiler/BIN file link above has been fixed on 12/30/2008 so that the /NoDecompile switch works.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 129 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 9  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot 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