Y
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
zbentley
3095 days ago
Can you explain that a bit more? I know "seq", but am unsure what your examples are illustrating. Thanks!
link
taejo
3095 days ago
-f specifies a format, so it can't use the specialized itoa implementation, but probably just uses printf.
link