Hacker News new | ask | show | jobs
by pixelbeat 3095 days ago
GNU seq uses this trick:

slow path:

    seq -f '%.1f' inf | pv > /dev/null
     ...[  12MiB/s]
fast path:

    seq inf | pv > /dev/null
     ...[ 491MiB/s]
1 comments

Can you explain that a bit more? I know "seq", but am unsure what your examples are illustrating. Thanks!
-f specifies a format, so it can't use the specialized itoa implementation, but probably just uses printf.