3 ms·
The problem of "Unix Philosophy for everything" is forgetting that involves multiple buffer copy and parsing. So if you're able to reduce the space problem at f
by faragon 11y ago
The problem of "Unix Philosophy for everything" is forgetting that involves multiple buffer copy and parsing. So if you're able to reduce the space problem at first step(s), you can reduce the problem, being that method efficient enough so the buffer copy + parsing become not significant (cheap step(s) for finding needle(s) in a haystack, and then, apply the higher cost operations).
However, for operations not involving filtering, i.e. when processing every line/record, you can increase the throughput avoiding IPC memory copies and parsing on every step (the copy + parsing could take an important portion of processing time).
- icefox 11y agoI often play a game where I first write some shell script in some way that was quick and easy to do. I start it running and see if I can in another terminal figure out the faster "correct" method. I rarely ever win.