3 ms·
And it's actually pretty clever from a performance point-of-view. You always have to read the inode to determine whether the file is executable. The inode inc
by bodyfour 5y ago
And it's actually pretty clever from a performance point-of-view.
You always have to read the inode to determine whether the file is executable. The inode included the locations of the first "direct" blocks of the file's contents. So if the file is empty you know that immediately.
If the file even had a single comment line, it would mean having to do a disk seek to read it. So it would effectively double the disk I/O needed to run "/bin/true"
- Dylan16807 5y agoClever yes, but you'll get much bigger benefits if you use a filesystem that can store tiny files inside the inode.
- deleted 5y ago[deleted]