You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "matthiasblaesing (via GitHub)" <gi...@apache.org> on 2025/04/14 20:33:29 UTC

Re: [I] JSEmbeddingProvider is using up CPU time in java files without JS [netbeans]

matthiasblaesing commented on issue #8419:
URL: https://github.com/apache/netbeans/issues/8419#issuecomment-2802920235

   I think this can be trivially improved. If I'm not mistaken, the problem is, that the TreePath construction is expensive, so we need a fastpath to determine whether the closer look is worth it. I think we should be able to get away with directly analyzing the annotation type tree. In my minder there are two cases: Fully qualified annotation name (should be a `MemberSelectTree`) and a simple name (should be `IdentifierTree`). Both can provide use with a simple name and that can act as a fastpath to determine, whether it is worth doing further checks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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