File: day_559__surprising_win.mdwn

package info (click to toggle)
git-annex 8.20210223-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 68,764 kB
  • sloc: haskell: 70,359; javascript: 9,103; sh: 1,304; makefile: 212; perl: 136; ansic: 44
file content (9 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
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%.