Gamestudio Links
Zorro Links
Newest Posts
Comment Out
by AndrewAMD. 11/18/19 17:55
Suppressing Messages
by MatPed. 11/18/19 14:19
Indicator and TimeFrame
by jcl. 11/18/19 12:44
Sierra Chart Plugin
by AndrewAMD. 11/17/19 19:27
Programming a megaproject in python and R
by anonymous87. 11/17/19 12:56
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
10 registered members (MatPed, SkyCaptain, Dooley, AndrewAMD, Uhrwerk, Jerome8911, kvm, Quad, 2 invisible), 655 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
anonymous87, LaszloK, gra9, Dev_ill, Ryu
18330 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,055
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1