by jolmg · 5y ago · 0 comments
Maybe the reason is another? Personally, I once had Magit act real slow at times because git-annex had added some git hook for something that I didn't need. Just removing that hook improved performance massively. Perhaps something similar is happening.
Also, I'm not sure Emacs Lisp can interface directly with C libraries, so using libgit2 might not be an option.
In a perfect world, Emacs would link to libgit2 and Magit would be adapted and folded into the core distribution.
Whatever is causing the slowness you're seeing, I don't think it's just because of the number of calls. It's probably the slowness of one or two specific commands, perhaps due to repo size.
Seems like there's something going on in the windows world.
I only work on Emacs in small projects though... so maybe that's why it's fast for me?!
I believe these days (i.e. since emacs 25) it can via dynamic modules. There are ffi libraries built on top of it.