From 95cec1bdfec3633e179f9d910a090808ba5e0bd1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 4 Jun 2021 13:14:29 -0400 Subject: [PATCH] comment --- ..._2ff094dd4ff1fb05db90782d381441d3._comment | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 doc/todo/init__58__do_not_bother_scanning_if_in_git-annex_branch/comment_1_2ff094dd4ff1fb05db90782d381441d3._comment diff --git a/doc/todo/init__58__do_not_bother_scanning_if_in_git-annex_branch/comment_1_2ff094dd4ff1fb05db90782d381441d3._comment b/doc/todo/init__58__do_not_bother_scanning_if_in_git-annex_branch/comment_1_2ff094dd4ff1fb05db90782d381441d3._comment new file mode 100644 index 0000000000..7e90b2c5f8 --- /dev/null +++ b/doc/todo/init__58__do_not_bother_scanning_if_in_git-annex_branch/comment_1_2ff094dd4ff1fb05db90782d381441d3._comment @@ -0,0 +1,22 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2021-06-04T16:03:34Z" + content=""" +Well, the init scanning is quite optimised by now, and since it will find no +annexed objects, there are no database writes needed, which are the slower +part of that. + +You will pay the price though when you later check out the master +branch, since it then has to scan the delta. And that scanning is less +optimised. It would be more beneficial to speed up that scanning +(reconcileStaged), which should be doable by using the git cat-key --batch +trick. + +I think the effect is somewhat psychological; if it says it's doing +a scan then people are going to feel on guard that it's expensive. I know that +sometimes git avoids displaying certain progress messages unless it's +determined the operation is going to take a long time (eg git status will +show a progress display in some circumstances but not commonly). That could +be useful here, and probably in other parts of git-annex. +"""]] -- 2.30.2