summaryrefslogtreecommitdiff
path: root/CHANGELOG
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-09-29 13:36:48 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-09-29 13:36:48 -0400
commit4d6f7038b86ebb6c583b8881c2ff47722a32f95f (patch)
tree83f03fb833cbca661c25364ee224c0f6204a1f3d /CHANGELOG
parent6cc0c44b26197439d35f3f53c8621f7f113841ab (diff)
Optimisations to git-annex branch query and setting, avoiding repeated copies of the environment.
Speeds up commands like "git-annex find --in remote" by over 50%. Profiling showed that adjustGitEnv was 21% of the time and 37% of the allocations of that command. It copied the environment each time with getEnvironment. The only repeated use of adjustGitEnv is in withIndexFile, which tends to be run at least once per file. So, it was optimised by keeping a cache of the environment, which can be reused. There could be other better ways to optimise this. Maybe get the while environment once at startup. But, then it would have to be serialized back out each time running a child process, so I doubt that would be a net win. It might be better to cache a version of the environment that is pre-modified to use .git-annex/index. But, profiling doesn't show that modifying the enviroment is taking any significant time.
Diffstat (limited to 'CHANGELOG')
-rw-r--r--CHANGELOG3
1 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 672072597..71f53793a 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@ git-annex (6.20160924) UNRELEASED; urgency=medium
* Optimisations to time it takes git-annex to walk working tree and find
files to work on. Sped up by around 18%.
+ * Optimisations to git-annex branch query and setting, avoiding repeated
+ copies of the environment. Speeds up commands like
+ "git-annex find --in remote" by over 50%.
-- Joey Hess <id@joeyh.name> Mon, 26 Sep 2016 16:46:19 -0400