git-annex/doc/todo/optimize_by_converting_String_to_ByteString.mdwn

18 lines
655 B
Text
Raw Normal View History

2019-11-26 20:11:55 +00:00
git-annex uses FilePath (String) extensively. That's a slow data type.
Converting to ByteString, and RawFilePath, should speed it up
significantly, according to [[/profiling]].
I've made a test branch, `bs`, to see what kind of performance improvement
2019-12-06 19:13:13 +00:00
to expect.
2019-11-26 20:11:55 +00:00
2019-12-06 19:13:13 +00:00
Benchmarking `git-annex find`, speedups range from 28-66%. The files fly by
much more snappily. Other commands likely also speed up, but do more work
than find so the improvement is not as large.
2019-12-18 19:19:19 +00:00
The `bs` branch is in a mergeable state now. [[done]]
2019-12-18 16:12:51 +00:00
Stuff not entirely finished:
2019-12-18 16:12:51 +00:00
* Profile various commands and look for hot spots involving conversion
between RawFilePath and FilePath.