|
|
|
|
|
by gpderetta
658 days ago
|
|
Yes, the overhead in the logging thread is what this is trying to minimize. The background thread is considered "free". This sort of async logging is a common setup for some class of applications. And yes, it boils down to writing data to a message queue. Most of the overhead is probably the call to the hardware timestamp counter. |
|
That's already ~10 ns, so I'm not sure how they are getting their numbers. If they are timestamping the data when the background thread gets to it that would be pushing even more work to it. It guessing they do or else they could potentially be logging out of order data with multiple threads.