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]