In a method of controlling computer-readable memory that includes a
plurality of memory locations, a usage frequency of a plurality of data
units is determined. Upon each occurrence of a predefined event, a memory
latency for each of the plurality of memory locations is determined.
After the predefined event, a data unit with a high usage frequency is
stored in a memory location with a low latency.