[go-nuts] Performance degradation when reading STDIN to multiple buffers?

2023-03-05 Thread Kursk
Hi, I've been recently experimenting with system pipes performance using Go, trying to measure how fast I could read from STDIN to a buffer, then do something with it. During that experiment I noticed a significant throughput degradation when reading into the same buffer vs different (pre-alloc

[go-nuts] Re: Performance degradation when reading STDIN to multiple buffers?

2023-03-05 Thread Kursk
Oh, interesting enough this performance degradation shows only in some Linux boxes (heavily optimised) from a LAB... I guess then this behaviour might be related to the specific Linux OS settings that those boxes have. On Sunday 5 March 2023 at 20:36:08 UTC Kursk wrote: > Hi, > I've been recent

Re: [go-nuts] overriding image.Decode image type detection

2023-03-05 Thread Nigel Tao
On Sun, Feb 26, 2023 at 12:43 PM 'Dan Kortschak' via golang-nuts wrote: > The alternative is to > replicate the image.Decode functionality, including registration which > seems ugly. It may seem ugly but that is what I'd recommend. https://go.dev/src/image/format.go is only 110 lines of code. In

Re: [go-nuts] overriding image.Decode image type detection

2023-03-05 Thread 'Dan Kortschak' via golang-nuts
On Mon, 2023-03-06 at 14:38 +1100, Nigel Tao wrote: > On Sun, Feb 26, 2023 at 12:43 PM 'Dan Kortschak' via golang-nuts > wrote: > > The alternative is to > > replicate the image.Decode functionality, including registration > > which > > seems ugly. > > It may seem ugly but that is what I'd recomme