[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jdt-dev] Search Engine slowness how can i improve ?
|
Hi Gayan,
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,
SearchPattern.R_EXACT_MATCH);
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?
Regards,
Manoj
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>
To: jdt-dev@xxxxxxxxxxx
Date: 07/02/2019 06:45 AM
Subject: [EXTERNAL] [jdt-dev] Search Engine slowness how can i improve ?
Sent by: jdt-dev-bounces@xxxxxxxxxxx
Hi,
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.javaThe 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?
Thanks
_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jdt-dev