Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/20/24 06:09
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (flink, Edgar_Herrera), 695 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
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