When we need to fill std::vector with values and the size of vector is known in advance, there are two possibilities: using emplace_back() or using operator[]. For the emplace_back() we should reserve the necessary amount of space with reserve() before emplacing into vector. This will avoid unnecessary vector regrow and benefit performance. Alternatively, if we…
All posts tagged minor faults
Debugging performance issues in kernel space: minor fault and major faults
Posted on Author Ivica BogosavljevićPosted in Kernel Space and Performance, PerformanceLeave a Reply
In this post we talk about major and minor faults as performance issues that your program can experience, we explain what they are, how to detect them and how to fix them,