Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
1718627440
7mo ago
0 comments
Share
> I guess Unix pipes are slow.
Or string concatenation, or pipeviewer.
0 comments
default
newest
oldest
fukka42
7mo 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
eru
7mo ago
Compare
https://codegolf.stackexchange.com/questions/199528/fastest-...
j
/
k
navigate · click thread line to collapse