Y
Hacker News
new
|
ask
|
show
|
jobs
by
1718627440
238 days ago
> I guess Unix pipes are slow.
Or string concatenation, or pipeviewer.
2 comments
fukka42
238 days ago
yes doesn't do string concatenation, at least not in the loop that matters. It just prepares a buffer of bytes once and writes it to stdout repeatedly.
https://github.com/coreutils/coreutils/blob/master/src/yes.c
link
eru
238 days ago
Compare
https://codegolf.stackexchange.com/questions/199528/fastest-...
link
https://github.com/coreutils/coreutils/blob/master/src/yes.c