From: Michael Lukashov Date: Thu, 28 Jan 2010 10:47:19 GMT Subject: Re: [PATCH v2] Windows: improve performance by avoiding a static dependency on ws2_32.dll and advapi32.dll Message-ID: <63cde7731001280247w51d32475ob5fa22f796fa50b7@mail.gmail.com> In-Reply-To: >> > >> >> "git status" calls ntohs function, which was loaded from ws2_32.dll >> I've noticed that bswap.h contains implementation of ntohl htonl functions, >> so I decided to add implementation of ntohs htons functions, which is >> pretty trivial. >> After that call to "git status" doesn't load ws2_32.dll > > I am still not convinced of that patch, because the timings are still > missing. > > Ciao, > Dscho > > Oops, sorry for the noise (again). "git status" calls ntohs function, which was loaded from ws2_32.dll I've noticed that bswap.h contains implementation of ntohl htonl functions, so I decided to add implementation of ntohs htons functions, which is pretty trivial. After that call to "git status" doesn't load ws2_32.dll The following commands were run and timed, the best of five results is shown: for i in `seq 1 10`; do git status git log -n2 git diff done before: real 0m30.024s user 0m0.105s sys 0m0.425s after: real 0m29.578s user 0m0.105s sys 0m0.318s The runtime of 'make -j2 test' went down from 35:19min to 32:39min on my machine.