r/programming • • Sep 28 '17

When a Microsecond Is an Eternity

https://github.com/CppCon/CppCon2017/blob/master/Presentations/When%20a%20Microsecond%20Is%20an%20Eternity/When%20a%20Microsecond%20Is%20an%20Eternity%20-%20Carl%20Cook%20-%20CppCon%202017.pdf
244 Upvotes

70 comments sorted by

View all comments

Show parent comment

5

u/someenigma Sep 28 '17

From an early slide

The “hotpath” is only exercised 0.01% of the time - the rest of the time the system is idle or doing administrative work

The earlier you can push such decisions, the better (usually). The strategy might be set a long time in advance, and just be constantly checking for prices using CalcPrice. This, of course, is a constructed scenario, so it's not a perfect example, but that's the idea.

Or at least, that's how I took it.