]> source.dussan.org Git - jgit.git/commit
Micro-optimize EditList.addAll 42/1642/3
authorShawn O. Pearce <spearce@spearce.org>
Tue, 21 Sep 2010 15:23:12 +0000 (08:23 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 24 Sep 2010 20:58:12 +0000 (13:58 -0700)
commit9bcf391355ce8772e934a8e865e148525f8a0cbd
tree16223f7527bb20bafa40d61e87c02199d28c97de
parentaf3fbb13f680cb3075d8f43a9113330711f5ae4f
Micro-optimize EditList.addAll

Pass through the addAll request to our underlying ArrayList.

This way the underlying ArrayList grows no more than once during the
call, which may be important if the list was originally allocated
at the default size of 16, but 64 Edits are being added.

Change-Id: I31c3261e895766f82c3c832b251a09f6e37e8860
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/diff/EditList.java