You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
622 B
9 lines
622 B
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...
|
|
|
|
|