Bug 58817 UI no longer responsive when sorting search matches
Build 20040413 I searched for references to type: java.lang.System in org.eclipse.jdt.core project. This found over 4000 matches. I attempted to sort them by parent name, and my IDE locked for about 5 minutes to do the work, with no progress indication, no refresh and 100% CPU usage. Clearly something to improve on UI responsiveness front.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchResultPage.java
protected void internalRefresh(Object element, boolean updateLabels) {
			if (element == null || equals(element, getRoot())) {
				
				
				
				
				
				
				Object[] children = getSortedChildren(getRoot());
				getTable().removeAll();
			
				
				for (int i = 0; i < children.length; ++i) {
					updateItem(new TableItem(getTable(), SWT.NONE, i), children[i]);
				}
			}
			else {
				Widget w = findItem(element);
				if (w != null) {
					updateItem(w, element);
				}
			}
		}
	}
	
	protected TableViewer createTableViewer(Composite parent) {
		return new ProblemTableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
	}
	
	void setSortOrder(int order) {