In this post we talk about how to write code that is both flexible and fast!
All posts in Standard Library and Performance
2-minute read: the Magic Touch of Parallel Algorithms
Posted on Author Ivica BogosavljevićPosted in Performance, Standard Library and Performance1 Reply
We investigate a simple way to speed up std::sort from the standard library
2-minute read: What is faster, std::endl or ‘\n’?
Posted on Author Ivica BogosavljevićPosted in Performance, Standard Library and PerformanceLeave a Reply
A few days ago I wrote a small app to illustrate one of the articles I was preparing. Basically the program was loading a file from the hard disk, sorting it, and then outputting to another file only unique values (by omitting duplicates). The function for writing unique values to a file looks like this:…
The price of dynamic memory: Allocation
Posted on Author Ivica BogosavljevićPosted in C++ Performance, Performance, Standard Library and Performance4 Replies
We talk about how to speed up your program if your program is taking time to allocate or release memory.