bringing objects into the cache
Posted: Sat Jun 23, 2012 4:45 am
Does calling a method on an object bring it into the cache or only accessing one of its properties?
Specifically I'm looping through a lot of objects and collecting ones that are of a certain type and I don't want to bring any more of them into the cache than I have to. So my question is whether calling Object::isKindOf on each object is going to bring them all into the cache.
The only way I can see of avoiding calling isKindOf on each object is to use getClassForObject, but that doesn't do exactly the same thing as isKindOf...
Specifically I'm looping through a lot of objects and collecting ones that are of a certain type and I don't want to bring any more of them into the cache than I have to. So my question is whether calling Object::isKindOf on each object is going to bring them all into the cache.
The only way I can see of avoiding calling isKindOf on each object is to use getClassForObject, but that doesn't do exactly the same thing as isKindOf...