todo/keep git-annex branch checked out?git-annexhttp://git-annex.branchable.com/todo/keep_git-annex_branch_checked_out__63__/git-annexikiwiki2020-07-01T17:32:45Zcomment 1http://git-annex.branchable.com/todo/keep_git-annex_branch_checked_out__63__/comment_1_cd967b89dbebd431a14b0dcd08ebc67c/joey2019-01-21T15:42:51Z2018-11-15T16:09:30Z
<p>Interesting idea, though a ramdisk seems like overkill; filesystem caching
tends to be quite good.</p>
<p>It would only speed up branch reads, not writes.</p>
<p>I don't think it would be much faster to read individual files from the
filesystem than reading the data directly out of the git repository.
git pack files are designed for fast random access. On top of that,
the git cat-file --batch interface adds extra context
switches and buffer copies and parsing overhead; something like libgit2
could potentially be quite a bit faster.</p>
<p>Note that git-annex repository v0 did keep the git-annex data in the
regular git tree. My notes during the conversion from that to the branch
include: "After all that, git-annex turned out to be nearly as fast as
before when it was simply reading files from the filesystem, and actually
faster in some cases." Although I didn't record more detailed benchmark
information. Would be interesting to dig up git-annex 0.20110610 and benchmark
it against the current version. <img src="http://git-annex.branchable.com/smileys/smile.png" alt=":-)" /></p>
git pack fileshttp://git-annex.branchable.com/todo/keep_git-annex_branch_checked_out__63__/comment_2_620cfbb2e2507d340dfb25d1fcd2cdfa/Ilya_Shlyakhter2020-07-01T17:32:45Z2020-07-01T17:32:45Z
"git pack files are designed for fast random access" -- but also for representing slow-changing source code files; git-annex branch contents seems quite different from the typical source code repo.