Git ls-files is Faster Than Fd and Find
1–10 of 80 posts
Re: Git ls-files is Faster Than Fd and Find
#2This seems utterly bizarre statement. What does author imagine SCM dies? Stuff, but listing the files that are the source it is managing is up there.
Like saying FPS is a game its not pushing triangles through GPU.
The larger purpose is facilitated by and requires the lessor purpose.
Re: Git ls-files is Faster Than Fd and Find
#3Thanks for bringing it up, I didn't know about the command. I also might have a use case for it.
Re: Git ls-files is Faster Than Fd and Find
#4Re: Git ls-files is Faster Than Fd and Find
#5Re: Git ls-files is Faster Than Fd and Find
#6Well, first doing `find > .my-index` and then measuring `cat .my-index` would give you even better results... I don't find it noteworthy that reading from an index is faster than actually recursively walking the filesystem.
Re: Git ls-files is Faster Than Fd and Find
#7One thing I’ve never understood about Linux filesystems: given how small and bounded the sets of directories and directory entries are, why is filesystem traversal not instantaneous?
Re: Git ls-files is Faster Than Fd and Find
#8One thing I’ve never understood about Linux filesystems: given how small and bounded the sets of directories and directory entries are, why is filesystem traversal not instantaneous?
Re: Git ls-files is Faster Than Fd and Find
#9One thing I’ve never understood about Linux filesystems: given how small and bounded the sets of directories and directory entries are, why is filesystem traversal not instantaneous?
Lack of caches I'd assume. Not because it's not easy, but because no one has taken the time to implement it.
Re: Git ls-files is Faster Than Fd and Find
#10One thing I’ve never understood about Linux filesystems: given how small and bounded the sets of directories and directory entries are, why is filesystem traversal not instantaneous?
Linux already transparently caches filesystem metadata. You already get a good speedup if you attempt the same directory walk twice, and not much have changed in the filesystem.