]> source.dussan.org Git - jgit.git/commit
PackWriter: Make want/have actual sets 99/3999/4
authorShawn O. Pearce <spearce@spearce.org>
Tue, 16 Aug 2011 19:18:39 +0000 (12:18 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 16 Aug 2011 19:18:39 +0000 (12:18 -0700)
commit74333e63b60440be5ff9f591f2203b635e26e3a0
treefae2a4c529a2203da18a8a12a7c24b01c8ab3a0c
parent100e9429b5a7eea8383c6e693d17b6233794c488
PackWriter: Make want/have actual sets

During parsing these are used with contains(). If they are a List
type, the contains operation is not efficient. Some callers such
as UploadPack often pass a List here, so convert to Set when the
type isn't efficient for contains().

Change-Id: If948ae3bf1f46e756bd2d5db14795e12ba7a6207
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/PackWriterTest.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackPushConnection.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkPushConnection.java