Click here to Skip to main content
15,887,083 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralIrked! Irked I am. Pin
PIEBALDconsult17-Aug-23 10:27
mvePIEBALDconsult17-Aug-23 10:27 
GeneralRe: Irked! Irked I am. Pin
BernardIE531717-Aug-23 12:55
BernardIE531717-Aug-23 12:55 
GeneralRe: Irked! Irked I am. Pin
PIEBALDconsult17-Aug-23 13:40
mvePIEBALDconsult17-Aug-23 13:40 
GeneralRe: Irked! Irked I am. Pin
BernardIE531717-Aug-23 13:55
BernardIE531717-Aug-23 13:55 
GeneralRe: Irked! Irked I am. Pin
Peter_in_278017-Aug-23 14:59
professionalPeter_in_278017-Aug-23 14:59 
GeneralRe: Irked! Irked I am. Pin
BernardIE531717-Aug-23 15:41
BernardIE531717-Aug-23 15:41 
GeneralRe: Irked! Irked I am. Pin
PIEBALDconsult17-Aug-23 15:40
mvePIEBALDconsult17-Aug-23 15:40 
GeneralRe: Irked! Irked I am. Pin
Graeme_Grant17-Aug-23 16:18
mvaGraeme_Grant17-Aug-23 16:18 
Have you looked at using System.IO.Pipelines[^]?

I needed to use it on a project for a custom async System.Text.Json reader for very large JSON files over 1GB each. I wrote an article about it: Deserializing Json Streams using Newtonsoft.Json & System.Text.Json with C# & VB[^] or if you prefer, I moved the reader to a github repo: Utf8JsonAsyncStreamReader/src/System.Text.Json.Stream/Utf8JsonAsyncStreamReader.cs at master · gragra33/Utf8JsonAsyncStreamReader · GitHub[^].

The nice thing with System.IO.Pipelines.PipeReader is:
* it is fast
* works with any stream
* work with a buffer of a size that you can choose
* the reader sets a flag when the end of the stream is hit
* asynchronous

Graeme


"I fear not the man who has practiced ten thousand kicks one time, but I fear the man that has practiced one kick ten thousand times!" - Bruce Lee


modified 17-Aug-23 22:27pm.

GeneralRe: Irked! Irked I am. Pin
PIEBALDconsult17-Aug-23 16:31
mvePIEBALDconsult17-Aug-23 16:31 
GeneralRe: Irked! Irked I am. Pin
Graeme_Grant17-Aug-23 16:49
mvaGraeme_Grant17-Aug-23 16:49 
GeneralRe: Irked! Irked I am. Pin
Daniel Pfeffer17-Aug-23 17:41
professionalDaniel Pfeffer17-Aug-23 17:41 
GeneralRe: Irked! Irked I am. Pin
Richard Deeming17-Aug-23 21:33
mveRichard Deeming17-Aug-23 21:33 
GeneralRe: Irked! Irked I am. Pin
Jörgen Andersson17-Aug-23 21:40
professionalJörgen Andersson17-Aug-23 21:40 
GeneralRe: Irked! Irked I am. Pin
PIEBALDconsult18-Aug-23 4:13
mvePIEBALDconsult18-Aug-23 4:13 
GeneralRe: Irked! Irked I am. Pin
Jörgen Andersson18-Aug-23 4:35
professionalJörgen Andersson18-Aug-23 4:35 
GeneralRe: Irked! Irked I am. Pin
PIEBALDconsult18-Aug-23 5:52
mvePIEBALDconsult18-Aug-23 5:52 
GeneralRe: Irked! Irked I am. Pin
jschell18-Aug-23 12:15
jschell18-Aug-23 12:15 
GeneralRe: Irked! Irked I am. Pin
PIEBALDconsult18-Aug-23 12:51
mvePIEBALDconsult18-Aug-23 12:51 
GeneralFound a new way to get rid of scammers. Pin
OriginalGriff17-Aug-23 8:47
mveOriginalGriff17-Aug-23 8:47 
GeneralRe: Found a new way to get rid of scammers. Pin
Slacker00717-Aug-23 8:58
professionalSlacker00717-Aug-23 8:58 
GeneralRe: Found a new way to get rid of scammers. Pin
raddevus17-Aug-23 9:52
mvaraddevus17-Aug-23 9:52 
GeneralRe: Found a new way to get rid of scammers. Pin
pkfox17-Aug-23 22:14
professionalpkfox17-Aug-23 22:14 
GeneralRe: Found a new way to get rid of scammers. Pin
MarkTJohnson17-Aug-23 10:02
professionalMarkTJohnson17-Aug-23 10:02 
GeneralRe: Found a new way to get rid of scammers. Pin
dandy7217-Aug-23 10:43
dandy7217-Aug-23 10:43 
GeneralRe: Found a new way to get rid of scammers. Pin
Graeme_Grant17-Aug-23 15:57
mvaGraeme_Grant17-Aug-23 15:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.