I\'m interested in objective analysis of which is more performant; calling instance methods of a singleton class or methods of a static class. I\'ve already seen this so I\'m no
Before you can call the instance method of a singleton pattern object, you need to get the instance first, which requires a static method call:
SomeClass::getInstance()->myMethod();
// versus
SomeClass::myMethod();
So the first time you need access to that object in a function, you need to make a static method call first. Because function calls are never free, you are probably better off making the method static.