Re: [go-nuts] x/image/riff optimisation

2021-01-25 Thread Ian Lance Taylor
On Mon, Jan 25, 2021 at 8:52 AM Alex Crane wrote: > > I have recently been using the x/image/riff library to inspect some large > RIFF files - typically I am interested in all chunks except the data chunk. I > have found with large files the performance is quite poor. Looking into the > code it

[go-nuts] x/image/riff optimisation

2021-01-25 Thread Alex Crane
Hello, I have recently been using the x/image/riff library to inspect some large RIFF files - typically I am interested in all chunks except the data chunk. I have found with large files the performance is quite poor. Looking into the code it does a `got, z.err = io.Copy(ioutil.Discard, z.chunk