Next | Prev | Up | Top | Contents | Index

Locality of Reference

The key to good cache performance is to maintain strong locality of reference. This can be restated as a rule of thumb: "Keep things that are used together, close together." Or, "Extract the greatest possible use from any 128-byte cache line before touching another." You must decide how to apply these principles in the context of your program design. Some possible techniques:


Next | Prev | Up | Top | Contents | Index