]> source.dussan.org Git - jgit.git/commit
Simplify UploadPack by parsing wants separately from haves 04/11004/1
authorShawn Pearce <spearce@spearce.org>
Fri, 8 Mar 2013 20:25:12 +0000 (12:25 -0800)
committerShawn Pearce <spearce@spearce.org>
Fri, 8 Mar 2013 20:25:12 +0000 (12:25 -0800)
commit437be8dfade74b039eeee24e400addcbb8fe2ca9
tree09d7c35365ae36833e040e7ddda79644e0167601
parent3ad454497cdb6a917c00b01c735f5a469b8fb2ff
Simplify UploadPack by parsing wants separately from haves

The DHT backend was very slow at parsing objects. To work around
that performance limitation I obfuscated UploadPack by folding both
the want and have sets together in a single parse queue. Since DHT
was removed the complexity is no longer constructive to JGit.

Doing this refactoring prepares the code for a slightly future
change where the have lines need to be handled specially from the
want lines. Splitting the parsing up into two phases makes such
a modification trivial.

Change-Id: If7aad533b82448bbb688278e21f709282e5ccf4b
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java