1. A method comprising: initiating, by a central processing unit (CPU) forming part of a computing device, execution of code associated with each of a plurality of objects used by a worker thread, the CPU having an associated cache split into a plurality of slices; determining, by a cache slice allocation algorithm for each object, whether any of the slices will be exclusive to or shared by the object; activating, for each object, any slices determined to be exclusive to the object such that the object exclusively uses such slices; and activating, for each object, any slices determined to be shared by the object such that the object shares or is configured to share such slices.