3 ms·
Sure it is. You have to do twice as many directory lookups, even if they're cached.
by loeg 11y ago
Sure it is. You have to do twice as many directory lookups, even if they're cached.
- tyingq 11y agoThe open() system call isn't doing recursive "directory lookups" (like readdir()) per se. It does have to traverse a linked list (dentries) to map the path+filename into an inode. But 6 deep into a linked list vs 3 deep is, I suspect, hardly measurable in terms of elapsed time. It's all hashed, and cached.