use of com.intellij.util.containers.StringInterner in project intellij-community by JetBrains.
the class GeneratedStructureModel method getInterner.
// we keep a shared string interner across all currently running xslt debugger instances. it should go away once
// all instances (and their toolwindow contents) are gone. This should minimize the memory usage of the generated
// structure tree.
private static StringInterner getInterner() {
StringInterner interner = SoftReference.dereference(ourSharedInterner);
if (interner == null) {
interner = new StringInterner();
ourSharedInterner = new WeakReference<>(interner);
}
return interner;
}
Aggregations