You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I dont understand??
EDIT:
Oh, I understand, you want that as output, so you know from where it is coming....
The Idea was to use the "Func()" as an identifier, but I can add additional output for locating the calls...
Ill let you know when I have done that.
Just to be clear about this, here is the output on my terminal. - First set is without optimizations. - Second set is with optimizations, and third set is by swithcing the functions code position in the source file...
I am serious... - Thats what the compiler does.
EDIT:
Its not an outliar, I ran it multiple times.
And here the results after stripping whitespaces and converting the file to ANSI:
What would be your conclusion from this:
What would be your conclusion from this:
That's nothing related to the compiler and is a normal behaviour at runtime. The first execution is slower then there is some cache at play. You can't expect something else on a modern computer, it depends on a lot of factors (software and hardware).
https://stackoverflow.com/questions/19388372/when-doing-performance-testing-why-are-the-initial-iterations-constantly-slower
I have taken a look at this phenomenon, and I am sorry to disappoint you, but there is no way this can be influenced by us.
The MQL compiler has a few very strange behaviours concerning performance, and I have had the most ridicolous findings within source code. - I reported all of these things to Alexey from Metaquotes, and I never received a satisactory answer.
It might be, by adding some comment to the lib_debug.mqh, this effect could change and move to another function. - Yes, I know, htat sounds completley like abracadabra, but thats what it is. - If you would like to investigate on that issue more, I am very willing to share the proof with you, which I have also given to metaquotes to investigate....
You will find lots of inconsistencies when regarding performance measurements. - As said, and I am sure you can see as well ,the cod eis exactly the same for both functions, still one takes significant longer than the other. - Thats due to whatever the compiler does.
If you want, Ill share the project with you, you will get an even more detailed version of that problem. - Unsolved.
As I said in my previous post, about the first measurement being slower, nothing related to the compiler. Normal behaviour.
If you have some other issues, please report it on the forum, where it can be check and reproduced, and then reported to MetaQuotes.
That's nothing related to the compiler and is a normal behaviour at runtime. The first execution is slower then there is some cache at play. You can't expect something else on a modern computer, it depends on a lot of factors (software and hardware).
https://stackoverflow.com/questions/19388372/when-doing-performance-testing-why-are-the-initial-iterations-constantly-slower
Got it...
I never use if() without brackets....
Change this line (Line Number 3351 in lib_debug.mqh
to this line:
that will fix the error...
Still some compile errors can occur:
Thank you for the contribution, I added your suggestion and it does solve the issue...
Still some compile errors can occur:
For the record, it's very well explained "why" in the link you provided elsewhere.
https://stackoverflow.com/questions/154136/why-use-apparently-meaningless-do-while-and-if-else-statements-in-macros