10 Feb 10:42
git status: small difference between stating whole repository and small subdirectory
Piotr Krukowiecki <piotr.krukowiecki <at> gmail.com>
2012-02-10 09:42:22 GMT
2012-02-10 09:42:22 GMT
Hi, I compared stating whole tree vs one small subdirectory, and I expected that for the subdirectory status will be very very fast. After all, it has only few files to stat. But it's not fast. Why? With cold cache (echo 3 | sudo tee /proc/sys/vm/drop_caches): $ time git status > /dev/null real 0m41.670s user 0m0.980s sys 0m2.908s $ time git status -- src/.../somedir > /dev/null real 0m17.380s user 0m0.748s sys 0m0.328s With warm cache: $ time git status > /dev/null real 0m0.792s user 0m0.404s sys 0m0.384s $ time git status -- src/.../somedir > /dev/null real 0m0.335s user 0m0.288s sys 0m0.048s(Continue reading)
>>
>> For the record, our (Java) project is quite small. It's 43MB (source
>> and images) and the entire directory tree after building is about
>> 1.6GB (this includes all JARs downloaded by Maven). So we're not
>> talking TBs of data.
>>
>> Any thoughts on which FSs to include in my tests? Or simply which FS
>> might be more appropriate?
>
>
> Do people still use reiserfs? I thought development on that pretty much
> stopped years ago. And reiser4 never made it into the kernel. Read the wiki
> page for why.
As I said, reiserfs works fine so I see no need to replace it. I'm not
a big fan of ext3 (I've run out of inodes too many times) and I simply
RSS Feed