]> source.dussan.org Git - jgit.git/commit
Speed up clone/fetch with large number of refs 48/10448/4
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 18 Feb 2013 19:25:00 +0000 (20:25 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 30 Mar 2013 12:36:44 +0000 (13:36 +0100)
commit5cf53fdacf28d5cabe7ad1ed154fe7f4971225a9
tree37a1051e07125ed626050b87e59d8e962bf39a86
parent4796fe70432d882f1d51d9fec59c111107be44f8
Speed up clone/fetch with large number of refs

Instead of re-reading all refs after each update, execute
the deletes first, then read all refs once and perform
the check for conflicting ref names in memory.

Change-Id: I17d0b3ccc27f868c8497607d8e57bf7082e65ba3
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefDirectoryTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/BatchRefUpdate.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RefUpdate.java