mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user