Skip to content
Discussion options

You must be logged in to vote

What is the idea here with System.IO.Pipelines? Should I do the same, and chain pipes to do my work?

You should do the same. Decorating an existing PipeReader/PipeWriter is the most efficient way to expose these pipelines.

Or should I instead do manual buffering and use only a single pipe to read data from, then do my steps on the read data?

This is also possible and easier but less efficient. Ideally you would only introduce your own buffer when the user decides to buffer their own data.

It's certainly possible to create highly efficient pre/post processing pipes, but I don't think I've ever seen one, but I don't think I've seen any advanced use cases at all...

There's a higher lev…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@HurricanKai
Comment options

@davidfowl
Comment options

Answer selected by HurricanKai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants