ide.tree.deferredicon.invalidates.cache in Registry option for IDEA-70087 IDEA constantly eats 30-50% of CPU under MacOSX 10.6.7

This commit is contained in:
Alexey Pegov
2011-06-01 14:36:32 +04:00
parent f10034f61b
commit 82f152ba1c
2 changed files with 3 additions and 1 deletions
@@ -24,6 +24,7 @@ import com.intellij.concurrency.JobUtil;
import com.intellij.openapi.progress.ProcessCanceledException;
import com.intellij.openapi.project.IndexNotReadyException;
import com.intellij.openapi.util.Ref;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.util.Alarm;
import com.intellij.util.Function;
import com.intellij.util.ui.EmptyIcon;
@@ -110,7 +111,7 @@ public class DeferredIconImpl<T> implements DeferredIcon {
int oldWidth = myDelegateIcon.getIconWidth();
myDelegateIcon = evaluate();
final boolean shouldRevalidate = myDelegateIcon.getIconWidth() != oldWidth;
final boolean shouldRevalidate = Registry.is("ide.tree.deferredicon.invalidates.cache") && myDelegateIcon.getIconWidth() != oldWidth;
//noinspection SSBasedInspection
SwingUtilities.invokeLater(new Runnable() {
@@ -63,6 +63,7 @@ ide.tree.autoExpandMaxDepth=5
ide.tree.expandRecursionDepth=50
ide.tree.checkStructure=false
ide.tree.uiLockAttempt=250
ide.tree.deferredicon.invalidates.cache=true
ide.splitter.mouseZone=6
ide.smart.horizontal.scrolling=true