vmg/clar — pull request #26 by phkelley (2012-10-15 15:09:16+00:00)
Title: Stop using SHFileOperation on Win32 (for speed)

Hi @vmg,

This change sped up the execution of the libgit2 test suite on my machine quite a bit. Deleting and copying directory structures on Win32 is really kind of a pain!

If you'd prefer to keep the `SHFileOperation` implementation instead of taking this change, then it would be great to throw a call to `CoInitialize(NULL)` at the beginning of the `main()` method on Win32. That would prevent `SHFileOperation` from bringing up and tearing down COM every time we call it. That repeated setup/teardown cost is the source of a good chunk of the performance problem that we have right now, but calling straight through to Win32 APIs is still going to be faster.