Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » performance question (declaration of sent messages)
performance question (declaration of sent messages) [message #252856] Sun, 20 April 2008 15:06
Eclipse UserFriend
Hello,

Is there a faster/more memory efficient way of finding all the IMethods
that a given method calls ?
I have two ways of doing this at the moment:

1. parse the target method, visit all the MethodInvocation (and
SuperMethodInvocation and ConstructorInvocation) nodes, resolve their
binding and collect the IMethod.
2. use the method
SearchEngine.searchDeclarationsOfSentMessages(IJavaElement
enclosingElement, SearchRequestor requestor, IProgressMonitor monitor)
throws JavaModelException

I need this for every method in an IJavaProject and for large projects :
1. too memory hungry (because I also need those methods in a cache =>
trying to have all the ASTs of an entire project in memory at once)
2. too slow

Thank you very much,
Ioana
Previous Topic:How to share compiler settings across working set
Next Topic:Preset Plugin Completion Proposal Background
Goto Forum:
  


Current Time: Fri Jul 18 10:54:29 EDT 2025

Powered by FUDForum. Page generated in 0.03408 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top