On Mon, Mar 11, 2013 at 01:47:03AM +0530, Ramkumar Ramachandra wrote: > git operations are slow on repositories with lots of files, and lots > of tiny filesystem calls like lstat(), getdents(), open() are > reposible for this. On the linux-2.6 repository, for instance, the > numbers for "git status" look like this: > > top syscalls sorted top syscalls sorted > by acc. time by number > ---------------------------------------------- > 0.401906 40950 lstat 0.401906 40950 lstat > 0.190484 5343 getdents 0.150055 5374 open > 0.150055 5374 open 0.190484 5343 getdents > 0.074843 2806 close 0.074843 2806 close > 0.003216 157 read 0.003216 157 read > > To solve this problem, we propose to build a daemon which will watch > the filesystem using inotify and report batched up events over a UNIX > socket. Since inotify is Linux-only, we have to leave open the > possibility of writing similar daemons for other platforms. > Everything will continue to work as before if there is no helper > present. While talking about platform independence. How about Windows? AFAIK there are no file based sockets. How about using shared memory, thats available, instead? It would greatly reduce the needed porting effort. Since operations on a lot of files is especially expensive on Windows it is one of the platforms that would profit the most from such a daemon. Cheers Heiko -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html