主权项 |
1. A computer-implemented method executed by one or more processors, the method comprising:
receiving a request for a first instruction included in a software application; storing a first cache entry corresponding to the first instruction in a cache structure; receiving a request for a second instruction included in the software application, the second instruction different than the first instruction; in response to receiving a request for the second instruction, determining that a cache entry must be removed from the cache structure to create space to store a second cache entry corresponding to the second instruction; in response to determining that a cache entry must be removed, determining that the first cache entry corresponding to the first instruction should be removed from the cache structure based on temporal locality attributes associated with at least one of the first instruction or the second instruction, the temporal locality attributes representing a likelihood that additional requests will be received for an associated instruction while the instruction is stored in a cache structure; in response to determining that the first cache entry corresponding to the first instruction should be removed, removing the first cache entry from the cache structure; and in response to removing the first cache entry, storing the second cache entry in the cache structure. |