Skip to content

Commit

Permalink
perf: #540 replace LinkedList with ArrayList in AbstractModelLines
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Jun 7, 2023
1 parent 9e05621 commit 02d4f0a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*/
package org.eclipse.tm4e.core.model;

import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

import org.eclipse.jdt.annotation.Nullable;
Expand All @@ -37,7 +37,7 @@ static final class ModelLine {
List<TMToken> tokens = Collections.emptyList();
}

private final List<ModelLine> list = new LinkedList<>();
private final List<ModelLine> list = new ArrayList<>();

@Nullable
private TMModel model;
Expand Down

0 comments on commit 02d4f0a

Please sign in to comment.