You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tomáš Procházka (Jira)" <ji...@apache.org> on 2020/11/22 10:30:00 UTC

[jira] [Created] (NETBEANS-5051) Improve performance of Find Usages

Tomáš Procházka created NETBEANS-5051:
-----------------------------------------

             Summary: Improve performance of Find Usages
                 Key: NETBEANS-5051
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5051
             Project: NetBeans
          Issue Type: Improvement
          Components: php - Refactoring
    Affects Versions: 12.2
            Reporter: Tomáš Procházka


Action "Find Usages" in PHP Editor is very slow when looking for public/protected methods with generic names like "create()", "get()" or "add()" in large codebases.

 It is because every file containing symbol with given name is parsed during search.

[Todo comment|https://github.com/apache/netbeans/blob/514e170f43416aec1a25c1c443837bf1ef9043f0/php/php.refactoring/src/org/netbeans/modules/refactoring/php/findusages/PhpWhereUsedQueryPlugin.java#L34] in Find Usages action suggests that preformance can be improved by indexing.

 Find Usages in Java code is way faster than in PHP.

Example of large PHP codebase is [Symfony Framework|https://github.com/symfony/symfony/], for large Java project I used PHP Editor from NetBeans source.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists