[git] no need to create linked multimap for storing records for hashes

Order of commit hashes is irrelevant, what matters is order of records for a hash. Ordinary multimap uses SmartList as a single collection, so it suffices for our purposes.
This commit is contained in:
Julia Beliaeva
2017-07-27 01:03:07 +03:00
parent 8a6e2998f1
commit f4add2cc06
@@ -44,8 +44,8 @@ abstract class GitLogRecordCollector implements Consumer<GitLogRecord> {
private static final int STATUS_LINES_THRESHOLD = 20_000;
@NotNull private final Project myProject;
@NotNull private final VirtualFile myRoot;
@NotNull private final MultiMap<String, GitLogRecord> myHashToRecord = MultiMap.createLinked();
@NotNull private final MultiMap<String, GitLogRecord> myHashToIncompleteRecords = MultiMap.createLinked();
@NotNull private final MultiMap<String, GitLogRecord> myHashToRecord = MultiMap.create();
@NotNull private final MultiMap<String, GitLogRecord> myHashToIncompleteRecords = MultiMap.create();
private int myIncompleteStatusLinesCount = 0;
protected GitLogRecordCollector(@NotNull Project project, @NotNull VirtualFile root) {