summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst
diff options
context:
space:
mode:
authorPatrick Hiesel <hiesel@google.com>2020-01-09 10:23:12 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2020-01-09 18:38:02 +0100
commit6185db3d776f1064af1972b4ba2175a917c35ab3 (patch)
treeb639add2aeb235dd35db6135f49295bceec87f99 /org.eclipse.jgit.test/tst
parent2b9dd32a828577bc1026ad53ec4f735a9b219022 (diff)
downloadjgit-6185db3d776f1064af1972b4ba2175a917c35ab3.tar.gz
jgit-6185db3d776f1064af1972b4ba2175a917c35ab3.zip
Replace usage of ArrayIndexOutOfBoundsException in treewalk
Using exceptions during normal operations - for example with the desire of expanding an array in the failure case - can have a severe performance impact. When exceptions are instantiated, a stack trace is collected. Generating stack trace can be expensive. Compared to that, checking an array for length - even if done many times - is cheap since this is a check that can run in just a handful of CPU cycles. Change-Id: Ifaf10623f6a876c9faecfa44654c9296315adfcb Signed-off-by: Patrick Hiesel <hiesel@google.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst')
0 files changed, 0 insertions, 0 deletions