OutOfLine – A Memory-Locality Pattern for High Performance C++ -- Patrick Moran

A description and implementation of a tradeoff for improving memory locality in fast-path code.

OutOfLine – A Memory-Locality Pattern for High Performance C++

By Patrick Moran

From the article:

OutOfLine is a tool that you can use to keep RAII, and move your cold members completely outside your object with zero space overhead.

Add a Comment

You must sign in or register to add a comment.

Comments (1)

0 0

ricab said on Aug 20, 2018 07:18 AM:

Interesting, but the article should mention that the time to access the cold_data becomes O(lgn) instead of O(1), where each of the O(lgn) hops is a potential cache miss.