Feb-21-2017, 05:30 PM
I'm confused, if it's a class method, how does it get an instance? Is it a singleton? If not, how do you identify which instance?
If you want to modify it, I suggest not caching it, since it would make it slightly more likely to accidentally modify the cached one instead of the correct one. We shouldn't bother with performance improvements like this unless we've run the code and find it necessary.
If you want to modify it, I suggest not caching it, since it would make it slightly more likely to accidentally modify the cached one instead of the correct one. We shouldn't bother with performance improvements like this unless we've run the code and find it necessary.