
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
Here's the answer why:
In the red rectangle - added one call toGetMicrosecondCount(), in the blue one - one more. That's why it's almost equal.
Why are you daring to show me the code? Without the code, you can shove your time pictures where the sun don't shine.
Oops. With identical actions, there was only a 30% difference.
Maybe it's classes that create the overhead? Of course, the compiler should in any case inline everything and cut out unnecessary things. It makes sense to point this out to the developers.
It worked. The structure worked at the same speed as the function and macro. But the class... far behind.
It worked. The structure worked at the same speed as the function and macro. But the class... far behind.
I gave advice on how to access private methods/fields in SB and picked up this hook on the forum myself, I don't remember who suggested it.
i was surprised to find out that i was giving advice as usual without sticking to the terminology, it was not a hook but an anti-pattern Public Morozovhttp://blog.kislenko.net/show.php?id=1775
)))
I gave advice on how to access private methods/fields in SB and picked up this hook on the forum myself, I don't remember who suggested it.
i was surprised to find out that i was giving advice as usual without sticking to the terminology, it was not a hookbut an anti-pattern Public Morozovhttp://blog.kislenko.net/show.php?id=1775
)))
there you have given a barrel of honey to pattern deniers and OO lovers :-) A pattern to get what is hidden by design considerations :-)
Someone (someone from current OO/C++ monsters), quite reasonably said that the sticking point of OO is that the base class must provide sufficient interfaces for all descendant variations (practically have available setters-getters to all fields, or all-in-one),
and descendants cannot create virtual functions outside parent protocol, only then will universal happiness come. Then generalized STL+boost really saves, tests are useful and reusable. But it becomes a lot of classes, because instead of new virtual functions all sorts of proxies act.
here you have given a barrel of honey to pattern deniers and OO lovers :-) Pattern to get what is hidden by design considerations :-)
Someone (someone from current OO/C++ monsters), quite reasonably said that the sticking point of OO is that the base class must provide sufficient interfaces for all descendant variations (practically have available setters-getters to all fields, or all-in-one),
and descendants must not create virtual functions outside parent protocol, only then will universal happiness come. Then generalized STL+boost really saves, tests are useful and reusable. But it becomes a lot of classes, because all sorts of proxies act instead of new virtual functions.
What do patterns and OO lovers have to do with it?
Someone (someone from the current OO/C++ monsters), quite sensibly said that the sticking point of OO is that the base class must provide sufficient interfaces for all variations of descendants (practically have setter-getters available to all fields, or all-in-a-blank)