diff --git a/.gitignore b/.gitignore index d9a10ac..4e4df06 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /target +/perf *~ # Profiling diff --git a/TODO b/TODO index d16b5dd..68794ac 100644 --- a/TODO +++ b/TODO @@ -1,2 +1,8 @@ -TODO: Is there a way we can set the size of `stdout` before exiting? -TODO: I dunno what `sealing` is, but maybe that can be used? Or, if not, a specific `fcntl()` call? Finding this out will allow consumers of `collect`'s output to use a single `splice()` instead of many, greatly improving its performance in pipelines as its output can be used like an actual file's... +From `strace` examinations, far fewer `splice()/send_file()` are used from the consumer of a `collect` in the middle of a pipe. +A reduction of over 5 times. But still not just a single one. + +# TODO: single syscall reads from consumers of `collect` in pipelines +Is there a way we can set the size of `stdout` before exiting? +I dunno what `sealing` is, but maybe that can be used? Or, if not, a specific `fcntl()` call? Finding this out will allow consumers of `collect`'s output to use a single `splice()` instead of many, greatly improving its performance in pipelines as its output can be used like an actual file's... + +