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