git-annex loads very slowly when dynamically linked #4239
Labels
0.kind: enhancement
Add something new
6.topic: haskell
9.needs: reporter feedback
This issue needs the person who filed it to respond
git-annex has a lot of Haskell dependencies, which makes it really slow to load up when it's dynamically linked.
It takes over 3 seconds to start on my machine, even for just a simple "git-annex version". This constant delay makes git-annex very painful to use in the terminal. Both the official build and a simple static version of the Nix build load nearly instantly.
I put the following override in my config.nix:
That builds and runs correctly, so git-annex should probably be static by default. I assume this also affects all other Haskell tools, but git-annex is the only big one I use.
(I'm still completely new to Nix (and Haskell), so I have no idea how to further test or profile this. Is there a reason Haskell tools, in particular the ones with giant dependencies, are dynamically linked?)
The text was updated successfully, but these errors were encountered: