3 ms·
Is rather have proper object interface to work with. Saves a lot of parsing
by jbverschoor 6y ago
Is rather have proper object interface to work with. Saves a lot of parsing
- viraptor 6y agoYou could have object interface on procfs. I think Solaris used a lot of binary files there.
- bayindirh 6y agoHacking a small pipeline starting with cat always beats having to write a code to parse something unintelligible at first sight IMHO. At the end of the day, first one is always faster.
- jbverschoor 6y agoStreams should be used for that.. streams. Structures should be used for structured data.
- bayindirh 6y agoI don't see a reason for /proc/meminfo or /proc/cpuinfo to be a stream. Similarly /proc/$pid/{cmdline,cgroup,mounts,..} to be streams. /proc is a very fine interface for getting realtime basic information about a process. Maybe we should leave it as it is and stop abusing well matured interfaces? I see red when Chrome uses intentionally broken symbolic links to store information on a system for example.