In this post we try to answer the questions “what are premature optimizations?”
All posts tagged stl
“Premature optimization is the root of all evil”. Or is it?
We investigate the topic of premature optimizations, or more specifically, in what cases you want to think early about performance.
The price of dynamic memory: Memory Access
Posted on Author Ivica BogosavljevićPosted in C++ Performance, Data Structure Performance, Low Level Performance, PerformanceLeave a Reply
If your program uses dynamic memory, its speed will depend on allocation time but also on memory access time. Here we investigate how memory access time depends on the memory layout of your data structure. We also investigate ways to speed up your program by laying out your data structure optimally.