Re: [jdt-dev] Search Engine slowness how can i improve ?
I don't see any issues here - however, if you would like to take the same path as the Java search box, then you can try using the following to create the search pattern.
pattern = SearchPattern.createPattern(expectedType, JavaSearchConstants.FIELD_DECLARATION_TYPE_REFERENCE |IJavaSearchConstants.RETURN_TYPE_REFERENCE,
Ideally, there should not be any difference in the times.
Would you be able to profile to figure out where exactly the time is being taken?
Gayan Perera ---07/02/2019 06:45:20 AM---Hi, I'm trying to do search using jdt Search engine to find methods that has a
From: Gayan Perera <gayanper@xxxxxxxxx>
Date: 07/02/2019 06:45 AM
Subject: [EXTERNAL] [jdt-dev] Search Engine slowness how can i improve ?
Sent by: jdt-dev-bounces@xxxxxxxxxxx
I'm trying to do search using jdt Search engine to find methods that has a specific return types and public fields that has a specific type. Code is here https://github.com/gayanper/gap-eclipse-jdt/blob/master/gap.eclipse.jdt.core/src/main/java/org/gap/eclipse/jdt/types/StaticMemberFinder.java
The problem is when i run this code it takes nearly 10 seconds to provide me the results. But if i do the same search from the Java Search Page the results will be presented in a time which is less than 5 seconds. All this times are wall clock times. The search scope is also workspace including all libs, jre etc.
Am i doing something wrong? Is their any space i can improve further?
jdt-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit