From 384eda5af7bc622ec866937afc70c30bc245bc52 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 2 Jan 2019 16:18:06 -0400 Subject: [PATCH] devblog --- doc/devblog/day_559__surprising_win.mdwn | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 doc/devblog/day_559__surprising_win.mdwn diff --git a/doc/devblog/day_559__surprising_win.mdwn b/doc/devblog/day_559__surprising_win.mdwn new file mode 100644 index 0000000000..a104a009e6 --- /dev/null +++ b/doc/devblog/day_559__surprising_win.mdwn @@ -0,0 +1,9 @@ +Built an attoparsec parser for timestamps, and unsurprisingly it's 15 times +faster parsing ByteStrings with it than the old String parser. The +surprising thing to me was that converting a String to a ByteString and +using the new parser is 10 times as fast as the old parser despite the +conversion overhead. A nice immediate speedup for many parts of git-annex! + +Of course timestamp parsing is not a major cost center in git-annex, but +benchmarking `git annex whereis` run on 1000 files, there is a real +speedup already, approximately 4%.