On Tuesday, 18 February 2014 at 03:15:59 UTC, Etienne wrote:

I'm sorry if the question seems complicated, I read everything Ulrich Drepper had to say in What every programmer should know about memory, and I still have a bit of a hard time visualizing the question myself.

I am by far no expert. But all your buffers reside on the heap and introducing a extra copy to m_buffer introduces another chance to trash the cash. I wouldn't worry to much about the stack data, it's only some pairs of ptr/length that would even fit into the registers.

cachegrind is a linux tool for cache simulation.

Reply via email to