Bug 86579 [content assist] guessing parameters is very slow
Eclipse : 3.1M5a Guessing the parameter values in JDT has gone very slow. I have noticed this since 3.1M4. My settings are : Java Editor Code Assist Advanced [x] fill argument names [x] guess names When I turn-off 'guess' method completion & filing in input-parameter name is faster. The plugin project has about 150 Java files and depends on about 20 plugins (not a large one). What other data I can provide to debug this help?
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ParameterGuesser.java
private TemplateProposal createTemplateProposal(IDocument document, Position position, String templateType) {
		String dimensionLess= templateType.substring(0, templateType.length() - 2);
		TemplateContextType contextType= JavaPlugin.getDefault().getTemplateContextRegistry().getContextType("java"); 
		
		position.offset= getCompletionOffset(document.get(), fCodeAssistOffset);
		JavaContext context= new PositionBasedJavaContext(contextType, document, position, fCompilationUnit);
		context.getCollections(); 
		
		context.setForceEvaluation(true);
		context.setVariable("type", dimensionLess); 
		
		IRegion region= new Region(fCodeAssistOffset, 0);
		
		Template toArray= JavaPlugin.getDefault().getTemplateStore().findTemplate("toarray"); 
		TemplateProposal proposal= new TemplateProposal(toArray, context, region, JavaPluginImages.get(JavaPluginImages.IMG_OBJS_TEMPLATE));
		return proposal;
	}
	private static class MatchComparator implements Comparator {
		private String fParamName;
		MatchComparator(String paramName) {
			fParamName= paramName;
		}
		public int compare(Object o1, Object o2) {
			Variable one= (Variable)o1;
			Variable two= (Variable)o2;
			
			return score(two) - score(one);
		}