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 static String getLongestCommonSubstring(String first, String second) {
		
		String shorter= (first.length() <= second.length()) ? first : second;
		String longer= shorter == first ? second : first;
		int minLength= shorter.length();
		StringBuffer pattern= new StringBuffer(shorter.length() + 2);	
		String longestCommonSubstring= ""; 
		
		for (int i= 0; i < minLength; i++) {
			for (int j= i + 1; j <= minLength; j++) {				
				if (j - i < longestCommonSubstring.length())
					continue;
				
				String substring= shorter.substring(i, j);
				pattern.setLength(0);
				pattern.append('*');
				pattern.append(substring);
				pattern.append('*');
				
				StringMatcher matcher= new StringMatcher(pattern.toString(), true, false);
				if (matcher.match(longer))
					longestCommonSubstring= substring;
			}
		}
	
		return longestCommonSubstring;
	}
	private Image getImage(ImageDescriptor descriptor) {
		return (descriptor == null) ? null : fRegistry.get(descriptor);
	}