summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-05-16 01:05:53 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-05-16 01:05:53 -0400
commit3a477c1376b02b621063dc1549172a272bc408d5 (patch)
tree1c591693f50a6cd4e6054fa1c20826f6bc04ac0f
parent4dc2000f97236089a8613cc6b0bf9846fea6abfa (diff)
devblog
-rw-r--r--doc/devblog/day_458__adeiu_MissingH.mdwn18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/devblog/day_458__adeiu_MissingH.mdwn b/doc/devblog/day_458__adeiu_MissingH.mdwn
new file mode 100644
index 000000000..5d6a7870e
--- /dev/null
+++ b/doc/devblog/day_458__adeiu_MissingH.mdwn
@@ -0,0 +1,18 @@
+Wasn't planning to, but spent the day making git-annex not depend on the
+MissingH library. This has been a long-term goal, as MissingH pulls in
+several other libraries and is not modern or principled.
+
+The first part was to using cryptonite for MD5 calculation. While
+converting to the form git-annex uses to make hash directories involved
+some math, this did make git-annex garbage-collect less, and
+probably made it faster.
+
+Then I had to write my own progress meter display, since git-annex was
+using MissingH's display. That was fairly simple (73 LoC), and let me
+make it more efficient and tuned for the git-annex use case. As a bonus, it
+got progress displays when transferring files of unknown sizes, which
+wasn't done before.
+
+MissingH was handy training wheels when I was coming over from perl,
+but it's been training wheels on some old cars in the middle of a
+500 car train for a while, so glad that's over.