Scripts slower with 8.0.2?
Moderators: Dorian (MJT support), JRL
Scripts slower with 8.0.2?
When I run the script below with version 8.0.1 I get a result instantly but when I run it with 8.0.2 I get a delay of half a second or so. This is a huge problem for me since a lot of my scripts are written to run at max speed. You may think half a second is no big deal but in my line of work it is! I'm assuming it has something to do with "Improved CPU utilization during script runs". Is there an option to disable "Improved CPU utilization during script runs"? If not can it be added to the next update?
Dialog>Dialog1
Caption=Dialog1
Width=167
Height=105
Top=218
Left=444
Button=GO,8,32,145,25,1
Edit=msEdit1,8,8,145,
EndDialog>Dialog1
show>Dialog1
label>action loop
wait>0.0005
gda>Dialog1,result
if>result=1,start
if>result=2,exit
goto>action loop
label>start
rda>Dialog1
let>t1=0
label>main
add>t1,1
if>t1=21,end_result
ran>10,num
let>rs%t1%=num
goto>main
label>end_result
let>Dialog1.msEdit1=%rs1%%rs2%%rs3%%rs4%%rs5%%rs6%%rs7%%rs8%%rs9%%rs10%%rs11%%rs12%%rs13%%rs14%%rs15%%rs16%%rs17%%rs18%%rs19%%rs20%
rda>Dialog1
goto>action loop
label>exit
Thank you for your time.
Dialog>Dialog1
Caption=Dialog1
Width=167
Height=105
Top=218
Left=444
Button=GO,8,32,145,25,1
Edit=msEdit1,8,8,145,
EndDialog>Dialog1
show>Dialog1
label>action loop
wait>0.0005
gda>Dialog1,result
if>result=1,start
if>result=2,exit
goto>action loop
label>start
rda>Dialog1
let>t1=0
label>main
add>t1,1
if>t1=21,end_result
ran>10,num
let>rs%t1%=num
goto>main
label>end_result
let>Dialog1.msEdit1=%rs1%%rs2%%rs3%%rs4%%rs5%%rs6%%rs7%%rs8%%rs9%%rs10%%rs11%%rs12%%rs13%%rs14%%rs15%%rs16%%rs17%%rs18%%rs19%%rs20%
rda>Dialog1
goto>action loop
label>exit
Thank you for your time.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
I don't see a difference between 8.0.1 and 8.0.2 with this script. Does anyone else get this?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Here are my PC spects to show you it has nothing to with my computer.
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 2 Build 2600
OS Manufacturer Microsoft Corporation
System Manufacturer Gateway
System Model 506GR
System Type X86-based PC
Processor x86 Family 15 Model 4 Stepping 1 GenuineIntel ~3200 Mhz
Processor x86 Family 15 Model 4 Stepping 1 GenuineIntel ~3200 Mhz
BIOS Version/Date Intel Corp. AG91510J.15A.0579.2004.1008.1003, 10/8/2004
SMBIOS Version 2.3
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)"
Time Zone Eastern Standard Time
Total Physical Memory 1,024.00 MB
Available Physical Memory 604.36 MB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 2.38 GB
Page File C:\pagefile.sys
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 2 Build 2600
OS Manufacturer Microsoft Corporation
System Manufacturer Gateway
System Model 506GR
System Type X86-based PC
Processor x86 Family 15 Model 4 Stepping 1 GenuineIntel ~3200 Mhz
Processor x86 Family 15 Model 4 Stepping 1 GenuineIntel ~3200 Mhz
BIOS Version/Date Intel Corp. AG91510J.15A.0579.2004.1008.1003, 10/8/2004
SMBIOS Version 2.3
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)"
Time Zone Eastern Standard Time
Total Physical Memory 1,024.00 MB
Available Physical Memory 604.36 MB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 2.38 GB
Page File C:\pagefile.sys
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Sorry, you are right, there is an error with the 8.0.2 compile! My apologies. It has been fixed and 8.0.3 is being uploaded now.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
I updated my computer yesterday but did not update any of the others here.
Mine is 2.4 pentium with 2 gig RAM with WinXP pro. When I run DJ's script I count three seconds between picking go and seeing results.
Tried this also on a 2.0 Gh Pentium with 1 Gig RAM running Win 2000 SP4 and still on Macro Scheduler version 8.0.1. When I run DJ's script there the results are immediate.
Just installed 8.0.2 on the second computer and now it also takes about three seconds to fill in the field after picking "GO"
Edit---
Oops... Looks like I was late again....
Hope this helps,
Dick
Mine is 2.4 pentium with 2 gig RAM with WinXP pro. When I run DJ's script I count three seconds between picking go and seeing results.
Tried this also on a 2.0 Gh Pentium with 1 Gig RAM running Win 2000 SP4 and still on Macro Scheduler version 8.0.1. When I run DJ's script there the results are immediate.
Just installed 8.0.2 on the second computer and now it also takes about three seconds to fill in the field after picking "GO"
Edit---
Oops... Looks like I was late again....
Hope this helps,
Dick
Hi Marcus,
Yes, with 8.0.3 it is much quicker than with 8.0.2, however, there is still a difference in running time. My guess it's not the CPU usage, but the Repeat/Until working on strings now rather on numbers as it was before.
With 7.4 my script time difference between the beginning & the end were:
2006-05-13:12:57:29:704 - starting
2006-05-13:12:57:31:466 - ending
With 8.0.2:
2006-05-11:08:00:17:537 - starting
2006-05-11:08:00:39:178 - ending
With 8.0.3:
2006-05-13:15:10:10:180 - starting
2006-05-13:15:10:12:383 - ending
(Since it's on a relatively small index range for Repeat/Until (~100 loop repetitions), it doesn't show a huge difference, but for larger range it is significant.)
Can anything be done with it? If it is because Repeat/Until string comparison, could we test without it? We actually never need any string comparison there...
Thank you,
Olga.
P.S. For the comboboxes such a HUGE thank you!!!!!! :)
Yes, with 8.0.3 it is much quicker than with 8.0.2, however, there is still a difference in running time. My guess it's not the CPU usage, but the Repeat/Until working on strings now rather on numbers as it was before.
With 7.4 my script time difference between the beginning & the end were:
2006-05-13:12:57:29:704 - starting
2006-05-13:12:57:31:466 - ending
With 8.0.2:
2006-05-11:08:00:17:537 - starting
2006-05-11:08:00:39:178 - ending
With 8.0.3:
2006-05-13:15:10:10:180 - starting
2006-05-13:15:10:12:383 - ending
(Since it's on a relatively small index range for Repeat/Until (~100 loop repetitions), it doesn't show a huge difference, but for larger range it is significant.)
Can anything be done with it? If it is because Repeat/Until string comparison, could we test without it? We actually never need any string comparison there...
Thank you,
Olga.
P.S. For the comboboxes such a HUGE thank you!!!!!! :)
Here's a little example of just Repeat/Until:
Performance:
for 7.4:
2006-05-13:11:53:33:517 - before loop
2006-05-13:11:53:33:577 - after loop
for 8.0.2:
2006-05-13:11:49:12:341 - before loop
2006-05-13:11:49:12:782 - after loop
for 8.0.3:
2006-05-13:16:23:09:357 - before loop
2006-05-13:16:23:09:437 - after loop
You see, still there's a difference.
Thanks,
Olga.
Code: Select all
Let>ppc_log=C:\debug.log
DateStamp>ppc_log,before loop
Let>ar_PPvars_count=40
Let>PPvarIdx=0
Repeat>PPvarIdx
DateStamp>ppc_log,in loop %PPvarIdx%
Let>PPvarIdx=PPvarIdx+1
Let>PPvar=1
Let>PPvar=2
Let>PPvar=3
Let>PPvar=4
Let>PPvar=5
Until>PPvarIdx,ar_PPvars_count
Let>ar_PPvars=
DateStamp>ppc_log,after loop
Performance:
for 7.4:
2006-05-13:11:53:33:517 - before loop
2006-05-13:11:53:33:577 - after loop
for 8.0.2:
2006-05-13:11:49:12:341 - before loop
2006-05-13:11:49:12:782 - after loop
for 8.0.3:
2006-05-13:16:23:09:357 - before loop
2006-05-13:16:23:09:437 - after loop
You see, still there's a difference.
Thanks,
Olga.