Herb Sutter posted an excellent new effective concurrency article; Measuring Parallel Performance: Optimizing a Concurrent Queue. Its surprising to see how much scalability can be gained by wasting space on padding, to make sure independent variables get to live on different cache lines.

One Response to “A little padding just makes you run faster”

  1. patrikkahari Says:

    Another post about false sharing between independent variables in same cache lines

    http://msdn.microsoft.com/en-us/magazine/cc872851.aspx


Leave a Reply