GNU COREUTILS
バッファリングで高速化 (2015年3月10日)
※主要部分のみ抜粋
記録: 225,443,840 [yes/s] ※8.25
int
main (int argc, char **argv)
{
...
...
/* Repeatedly output the buffer until there is a write error
while (full_write (STDOUT_FILENO, buf, bufused) == bufused)
continue;
error (0, errno, _("standard output"));
return EXIT_FAILURE;
}
[ GitPitch @ github/msr-i386/slide_20180407_yes ]
16 / 20