gpt4 book ai didi

git - 为什么 git core.preloadindex 默认值是 false?

转载 作者:IT王子 更新时间:2023-10-29 01:27:20 29 4
gpt4 key购买 nike

谁能回答为什么 core.preloadindex 默认为假?有什么陷阱吗?我无法想象性能损失。

最佳答案

为什么它不是默认值 - 好吧,它是在 2008 年推出的,他们这样做是为了提高 NFS 等弱文件系统的性能,并且...... Linus 认为现在应该将它设为默认值 - http://git.661346.n2.nabble.com/git-status-takes-30-seconds-on-Windows-7-Why-tp7580816p7580853.html

I wonder if preloadindex shouldn't be enabled by default.. It's a huge deal on NFS, and the only real downside is that it expects threading to work. It potentially slows things down a tiny bit for single-CPU cases with everything cached, but that isn't likely to be a relevant case.

关于git - 为什么 git core.preloadindex 默认值是 false?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18257622/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com