3 ms·
The filesystems is a database for storing files already. There is no particular reason a different approach be faster in principle.
by gpderetta 3y ago
The filesystems is a database for storing files already. There is no particular reason a different approach be faster in principle.
- kmeisthax 3y agoGit actually does have a separate disk format that's way more database-like, but it's only used for older data that doesn't need to be shuffled around as often. Git was written assuming the filesystem is decently fast at metadata mutation, which is a good assumption on Linux and less so on Windows.
- im3w1l 3y agoGit needs some queries that filesystems arent very good at natively, like "get all modified files". There are workarounds but yeah.