3 ms·
Could this example have been accomplished with awk and xargs just as fast, with same or less memory usage, in fewer lines of code? Seems so to me after skimmin
by jimbokun 11y ago
Could this example have been accomplished with awk and xargs just as fast, with same or less memory usage, in fewer lines of code?
Seems so to me after skimming the article, but maybe I missed an important advantage of using Akka Streams for this task?
- thelastnode 11y agoYes, the initial parts of the example could be accomplished with awk and xargs, but as the article goes on to demonstrate, even doing something like printing every nth element would be difficult. I think the intent was for this to be more of a demonstrative example, and with a more complex, evolving, real-world processing pipeline, Akka streams could be really useful.