mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +02:00
Since readdir() actually gives us the file type, we don't have to stat it again to know whether it's a directory! This means that 'find /' can process the majority of files without ever calling stat() on them, simply by reading directories. In addition, the TypeCommand (-t) can make use of this info too, so, for instance, a 'find / -t d' does not need to stat anything either. This gives us a final huge speedup :^)
16 KiB
16 KiB