TODO: Find out how to set the length of stdout if possible, so that the consumer of `collect` in a pipeline need only use one syscall splice() to read all the collected data at once, like a file.

Fortune for collect's current commit: Curse − 凶
exec
Avril 3 years ago
parent b47a27c60f
commit 289db974cd
Signed by: flanchan
GPG Key ID: 284488987C31F630

1
.gitignore vendored

@ -1,4 +1,5 @@
/target /target
/perf
*~ *~
# Profiling # Profiling

10
TODO

@ -1,2 +1,8 @@
TODO: Is there a way we can set the size of `stdout` before exiting? From `strace` examinations, far fewer `splice()/send_file()` are used from the consumer of a `collect` in the middle of a pipe.
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... 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...

Loading…
Cancel
Save