3 ms·
Is there any actual, useful, worthwhile reason for avoiding useless `cat` though?
by archduck 4y ago
Is there any actual, useful, worthwhile reason for avoiding useless `cat` though?
- blacklion 4y agoAre several memory copies and context switches free for you? They are most expensive operations on modern hardware (yes, I know about splice syscall in Linux, but it is Linux-specific and don't avoid context switches). I think, on very high-end modern storage subsystem (like, stripe built out of several enterprise-grade NMVe SSDs) impact will be well-measurable in case of simple "wc".
- ElevenLathe 4y agoI can imagine if you are running 70s vintage DEC hardware, there might be appreciable performance benefits to not spawning that extra process.