]> source.dussan.org Git - jgit.git/commit
BlockList: Micro-optimize appending from another BlockList 74/2774/1
authorShawn O. Pearce <spearce@spearce.org>
Fri, 18 Mar 2011 16:07:25 +0000 (09:07 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 18 Mar 2011 16:11:56 +0000 (09:11 -0700)
commit62fe7c7313e4e7a4339fe9df3a9dc2335461df29
tree5c38b105842c4675351f8e98fa4631ae1c93fcda
parent48fb404a3f155805a67bdc18c7ca22d18df03be2
BlockList: Micro-optimize appending from another BlockList

Simple variant of addAll() that knows how to copy large segments
quickly using System.arraycopy() rather than looping through with
an Iterator object.

Change-Id: Icb50a8f87fe9180ea28b6920f473bb9e70c300f1
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/BlockListTest.java
org.eclipse.jgit/src/org/eclipse/jgit/util/BlockList.java