Bug 232851 Performance regression: OpenCloseViewTest#showView:ResourceNavigator
3.4 HEAD: Elapsed : 624ms (95% in [621ms, 628ms]) Measurable effect: 6ms (0.4 SDs) CPU Time: 576ms (95% in [564ms, 589ms]) Measurable effect: 25ms (0.4 SDs)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
/**
     * Initializes the sorter.
     * 
     * @deprecated as of 3.3, use {@link ResourceNavigator#initResourceComparator()} instead
     */
    protected void initResourceSorter() {
        int sortType = ResourceSorter.NAME;
        try {
            int sortInt = 0;
            if (memento != null) {
                String sortStr = memento.getString(TAG_SORTER);
                if (sortStr != null) {
					sortInt = new Integer(sortStr).intValue();
				}
            } else {
                sortInt = settings.getInt(STORE_SORT_TYPE);
            }
            if (sortInt == ResourceSorter.NAME
                    || sortInt == ResourceSorter.TYPE) {
				sortType = sortInt;
			}
        } catch (NumberFormatException e) {
        }
        setSorter(new ResourceSorter(sortType));
    }
    
    /**
     * Initializes the comparator.
	 * @since 3.3
     */