3 ms·
Care to explain? How does something like procfs map better to hardware than an explicit API?
by SubjectToChange 3y ago
Care to explain? How does something like procfs map better to hardware than an explicit API?
- xxs 3y ago/proc is for stuff like shell automation, not normal 'file' use. The idea is that files are just byte streams/arrays, and pretty good to be optimized. System calls will always be better than /proc, that's not the point at all.
- SubjectToChange 3y ago/proc is for stuff like shell automation, not normal 'file' use. Systems like /proc/ are cornerstones of the “Everything is a file” concept. The idea is that files are just byte streams/arrays, and pretty good to be optimized. If your point is simply that “files are efficient because they are just dumb bags of bytes”, then you are in a rude awakening.