Git slows down Emacs to Death – How to Fix this?

There’s a built-in profiler called ELP. You can try something like M-x elp-instrument-package, enter “vc”, and then try finding a file. Afterwards, M-x elp-results will show you a profile report. (Note that if the time is instead being spent in non-vc-related functions, this technique will not show it, but you can instrument further packages if … Read more

Reference a GNU C (POSIX) DLL built in GCC against Cygwin, from C#/NET

The main problem which you has is following. Before you can use your helloworld.dll a cygwin environment must be initialized (see http://cygwin.com/faq/faq.programming.html#faq.programming.msvs-mingw). So the following code in native C++ will works: #include <windows.h> typedef int (*PFN_HELLO)(); typedef void (*PFN_CYGWIN_DLL_INIT)(); int main() { PFN_HELLO fnHello; HMODULE hLib, h = LoadLibrary(TEXT(“cygwin1.dll”)); PFN_CYGWIN_DLL_INIT init = (PFN_CYGWIN_DLL_INIT) GetProcAddress(h,”cygwin_dll_init”); init(); … Read more

building and linking a shared library

When using -l<libname> to specify library to link, the linker will first search for lib<libname>.so before searching for lib<libname>.a. In your case it doesn’t work, because the library filename is not with .so suffix. You may create simlink libbeat.so -> libbeat.so.1.0.1 or libbeat.so -> libbeat.so.1 libbeat.so.1 -> libbeat.so.1.0.1 You can also use -l:libbeat.so.1.0.1 (if your … Read more

Running Git through Cygwin from Windows

I confirm that git and msysgit can coexist on the same computer, as mentioned in “Which GIT version to use cygwin or msysGit or both?“. Git for Windows (msysgit) will run in its own shell (dos with git-cmd.bat or bash with Git Bash.vbs) Update 2016: msysgit is obsolete, and the new Git for Windows now … Read more