Approximately 10x speedup for finding changed files
commit5d212d070bd70dd8927c7871ade3b2f0801467be
authorDave Watson <dwatson@mimvista.com>
Thu, 28 Jun 2007 14:04:52 +0000 (28 10:04 -0400)
committerDave Watson <dwatson@mimvista.com>
Fri, 29 Jun 2007 01:21:36 +0000 (28 21:21 -0400)
tree7eb97f762428e41ab112b4d627defcbef5445cf7
parentf0911b25bd4df2ffbbbce2b13710f47152214a4e
Approximately 10x speedup for finding changed files

Since we've already done an index-head comparison, we can skip that step
for each file in the filesystem trees we're walking.

This change, on an unpacked repository with nearly 40000 files (mostly in
.git/objects), took the time from 16 seconds to 1.5 seconds.

Signed-off-by: Dave Watson <dwatson@mimvista.com>
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CommitAction.java