performance question (declaration of sent messages) [message #252856] |
Sun, 20 April 2008 15:06 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03408 seconds