Problem
When I tested the ready system with the live data from the satellite antenna, there were no apparent problems – the system was able to hold pace with the data and the contents were saved to the disk without much contention. As I mentioned earlier, the machine we used was a nice middle-class server blade and it coped with the load fine.
Because there weren't any evident problems, I decided to have a closer look at the system and find out where its bottlenecks were. When I attached a profile (I think it was GlowCode back then) to the program, I was surprised, and somehow horrified to discover that most of the system's time was spent in the std::find() function. The program was clearly burning CPU cycles doing some needless and repetitive ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access