High performance IO with System.IO.Pipelines
Ғылым және технология
Pipelines was born from the work the .NET Core team was doing to make it easier to do high performance IO in .NET.
In this episode, Pavel Krymets (@pakrym) and David Fowler (@davidfowl) come on the show to give us an overview of how the Pipelines programming model works, as well as give show us a few demos on how to use the API.
00:26 - What’s the rationale being System.IO.Pipelines?
02:10 - Performance comparison between Pipes and Streams
04:17 - Concerns with working with Stream
09:42 - Moving to Pipes
13:45 - Client Server demo
22:16 - How might Pipes work with C# 8 IAsyncEnumerable?
26:04 - Reducing allocations
28:46 - Getting started with Pipelines
Пікірлер: 16
If you're using this code as a guide, be careful that I spotted a bug in the ProcessLine sample code. UTF-8 is a variable width encoding, so it's possible that the incoming spans were split in the middle of a UTF8 character and this code would turn that character into gibberish. Works if you use ASCII or any single byte encoding though.
One of the most useful videos in dev that I've watched in quite some while. Nice!
Glad to see a fellow slav working in MS
@jacksonkhalil3743
2 жыл бұрын
i know Im randomly asking but does anyone know of a trick to log back into an Instagram account?? I somehow forgot my account password. I would love any tips you can give me
@jesiahsamson2297
2 жыл бұрын
@Jackson Khalil instablaster :)
@jacksonkhalil3743
2 жыл бұрын
@Jesiah Samson i really appreciate your reply. I got to the site thru google and im in the hacking process atm. I see it takes a while so I will reply here later when my account password hopefully is recovered.
@jacksonkhalil3743
2 жыл бұрын
@Jesiah Samson it did the trick and I now got access to my account again. I'm so happy:D Thanks so much you saved my account !
@jesiahsamson2297
2 жыл бұрын
@Jackson Khalil no problem :)
Sweet stuff guys! I love working on cool low-level things like this.
Yep, positive karma from me. Well done.
Need to work on for loop speed performance on sql data reader etc to help developers fix bottle necks.
Hmm... I wrote a WCF service so that I could upload a binary file. The MessageContract has a header string that I pass JSON with and body that is a Stream. So would this Pipeline be a better way to go? I would like to see a binary file transfer sample.
Павел молодец!