# HG changeset patch # User Artem Tikhomirov # Date 1328810849 -3600 # Node ID 6e37c71685853444c4b226dc1e4f2b795874f39c # Parent 9517df1ef7ec328ecdf4a5ed5815d4bdd23a7237 IntMap is more effective than TreeMap diff -r 9517df1ef7ec -r 6e37c7168585 src/org/tmatesoft/hg/internal/ChangelogHelper.java --- a/src/org/tmatesoft/hg/internal/ChangelogHelper.java Thu Feb 09 18:57:14 2012 +0100 +++ b/src/org/tmatesoft/hg/internal/ChangelogHelper.java Thu Feb 09 19:07:29 2012 +0100 @@ -16,8 +16,6 @@ */ package org.tmatesoft.hg.internal; -import java.util.TreeMap; - import org.tmatesoft.hg.core.HgInvalidControlFileException; import org.tmatesoft.hg.repo.HgChangelog.RawChangeset; import org.tmatesoft.hg.repo.HgDataFile; @@ -33,7 +31,7 @@ public class ChangelogHelper { private final int leftBoundary; private final HgRepository repo; - private final TreeMap cache = new TreeMap(); // FIXME use IntMap instead + private final IntMap cache = new IntMap(32); private String nextCommitAuthor; /**