News for hackers. Stuff that matters.
Re:How to Print Integers Really Fast by pixelbeat on Sunday December 24, 2017 @08:58AM (#15999528)
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]
Re:How to Print Integers Really Fast by zbentley on Sunday December 24, 2017 @12:01PM (#16000262)
Can you explain that a bit more? I know "seq", but am unsure what your examples are illustrating. Thanks!
Re:How to Print Integers Really Fast by taejo on Sunday December 24, 2017 @12:45PM (#16000436)
-f specifies a format, so it can't use the specialized itoa implementation, but probably just uses printf.