mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-311645 Replaced ArrayDeque with LinkedLIst
Despite ArrayDeque claims to work faster than LinkedList, it consumes memory even when it's empty. Especially when we have a lot of Nodes expanded. This change should not noticeably reduce performance, but should reduce a memory footprint. GitOrigin-RevId: 252eb18dc96466eaa9fb34bb7f655f1a42a449cd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
01ceb4ebbb
commit
40dcdc51e8
@@ -693,7 +693,7 @@ public final class AsyncTreeModel extends AbstractTreeModel implements Searchabl
|
||||
}
|
||||
|
||||
private static final class CommandQueue<T extends Command> {
|
||||
private final Deque<T> deque = new ArrayDeque<>();
|
||||
private final LinkedList<T> deque = new LinkedList<>();
|
||||
private volatile boolean closed;
|
||||
|
||||
T get() {
|
||||
|
||||
Reference in New Issue
Block a user