phpactor/phpactor

Finding static method extremely slow with large legacy codebase

Closed this issue · 3 comments

Finding referenes to static methods should be extremely fast

The speed of finding any method is currently tied to the name of the method. If it's a common method name it needs to search through all methods with this name. Parse the parent class and check if it's the correct one.

Static methods can be very fast because the indexer has them all as opposed to instance methods where you need to detemine the type of object the candidate method is attached to.

Was "fixed" by #2851