Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, SBGuy, Petra), 801 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: advise calls in TRAINMODE/TESTMODE slow [Re: laz] #478110
09/09/19 09:21
09/09/19 09:21
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
wait(0) triggers the Windows message system and is of course very slow. Can take several hundred microseconds on slow systems. Don't call it on any iteration in a fast loop.

Re: advise calls in TRAINMODE/TESTMODE slow [Re: laz] #478439
10/22/19 08:48
10/22/19 08:48
Joined: Jan 2019
Posts: 73
berlin
L
laz Offline OP
Junior Member
laz  Offline OP
Junior Member
L

Joined: Jan 2019
Posts: 73
berlin
"Zorro 2.19.6 new features (beta version)"

"The advise training speed has been improved for large training sets."

IT REALLY HAS grin!

advise-slow-test-0.c with 400 inputs (TRAINMODE)
Quote
AUDUSD AL0 | Bars 72751 | Bar 9000 | 400.41 ms
AUDUSD AL0 | Bars 72751 | Bar 10000 | 406.71 ms
AUDUSD AL0 | Bars 72751 | Bar 11000 | 356.71 ms
AUDUSD AL0 | Bars 72751 | Bar 12000 | 384.86 ms
AUDUSD AL0 | Bars 72751 | Bar 13000 | 404.33 ms
AUDUSD AL0 | Bars 72751 | Bar 14000 | 373.60 ms
AUDUSD AL0 | Bars 72751 | Bar 15000 | 412.75 ms

The delay in TESTMODE (caused by the wait()) should be fixed by the change from

Quote
if(!wait(0)) return 0;
to
Quote
if(!wait(-200)) return 0;
in the new r.h file.

Quote
EURUSD AL1 | Bars 72751 | Bar 15000 | 734.00 ms
EURUSD AL1 | Bars 72751 | Bar 16000 | 569.11 ms
EURUSD AL1 | Bars 72751 | Bar 17000 | 714.08 ms
EURUSD AL1 | Bars 72751 | Bar 18000 | 517.06 ms

At this point I have to say a big compliment to the support! Both issues have been fixed, as you can see now - there are no delays (increasing run-times) anymore.

Thank you, keep it up!

Last edited by laz; 10/22/19 08:58.
Page 2 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1