Re:How Ruby is beating Python in the battle for the Soul of ...
by lloeki on Monday October 03, 2011 @11:06AM
(#3066537)
Reminds me on that article on GNU grep doing some speedy magic: http://lists.freebsd.org/pipermail/freebsd-current/2010-Augu...
Yeah, but that one-liner reads the whole file. 'tail' can be more clever (and is). 'strace' output:
'tail' is seeking to the end, then reading backwards.The point being, these 'little tools' can contain important optimisations - they aren't necessarily equivalent to a naive reimplementation.