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
protected void initResourceComparator(){
        int sortType = ResourceComparator.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 == ResourceComparator.NAME
                    || sortInt == ResourceComparator.TYPE) {
				sortType = sortInt;
			}
        } catch (NumberFormatException e) {
        }
        setComparator(new ResourceComparator(sortType));
    }
    /**
     * Restores the working set filter from the persistence store.
     */
    protected void initWorkingSetFilter() {
        String workingSetName = settings.get(STORE_WORKING_SET);
        IWorkingSet workingSet = null;
        
        if (workingSetName != null && workingSetName.equals("") == false) { 
			IWorkingSetManager workingSetManager = getPlugin().getWorkbench()
					.getWorkingSetManager();