From be30387e8b95cbc626e2a4a4ebba9ac9678a1c06 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Thu, 25 Feb 2016 16:05:18 -0500 Subject: iterators: refactored tree iterator Refactored the tree iterator to never recurse; simply process the next entry in order in `advance`. Additionally, reduce the number of allocations and sorting as much as possible to provide a ~30% speedup on case-sensitive iteration. (The gains for case-insensitive iteration are less majestic.) --- tests/repo/iterator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/repo') diff --git a/tests/repo/iterator.c b/tests/repo/iterator.c index 0ab8d68c0..f3a0682f9 100644 --- a/tests/repo/iterator.c +++ b/tests/repo/iterator.c @@ -1455,7 +1455,7 @@ void test_repo_iterator__treefilelist(void) git_repository_head_tree(&tree, g_repo); /* All indexfilelist iterator tests are "autoexpand with no tree entries" */ - /* In this test we DO NOT force a case on the iteratords and verify default behavior. */ + /* In this test we DO NOT force a case on the iterators and verify default behavior. */ i_opts.pathlist.strings = (char **)filelist.contents; i_opts.pathlist.count = filelist.length; -- cgit v1.2.3