Mercurial > jhg
diff src/org/tmatesoft/hg/internal/Pool2.java @ 304:85b8efde5586
Use memory-friendly set implementation to canonicalize filenames and nodeids
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 21 Sep 2011 18:26:16 +0200 |
parents | 6bb5e7ed051a |
children |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/Pool2.java Tue Sep 20 04:43:39 2011 +0200 +++ b/src/org/tmatesoft/hg/internal/Pool2.java Wed Sep 21 18:26:16 2011 +0200 @@ -16,7 +16,8 @@ */ package org.tmatesoft.hg.internal; -import org.tmatesoft.hg.util.SparseSet; +import org.tmatesoft.hg.util.DirectHashSet; + /** * @@ -24,7 +25,7 @@ * @author TMate Software Ltd. */ public class Pool2<T> { - private final SparseSet<T> unify = new SparseSet<T>(); + private final DirectHashSet<T> unify = new DirectHashSet<T>(); public Pool2() { } @@ -57,10 +58,6 @@ public int size() { return unify.size(); } - - public void x() { - unify.dump(); - } @Override public String toString() {