>You should really refactor the above to implement IDisposable on FileStream.
Yes, that's correct. It is like that on all other places used. Once I get back at this one, it will be adjusted for that standard as well.
>Look at the System.IO.Compression library. You can open a zip file, get a list of all entries and, from that, get the stream for each entry. See example here:
>
https://msdn.microsoft.com/en-us/library/system.io.compression.ziparchive.entries(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-2>but for each entry call the Open() method instead which will return a stream
I resolved the issue by only extracting the required XML file for analyzing the content of the file. Basically, it went from a few minutes to instant process.
Thanks