Loading and saving a large pptx file, 9MB - 616 Slides.
I've upgraded to 17.3 and that fixed the OutOfMemory exceptions but some of the byte[] memory allocations are still large compared to the file.
Unfortunately I can't share the file this time but it has the typical structure. A lot of text, tables, images, shapes and charts.
I have attached a profile of the load and save. Hopefully that will assist in tracking down the main problems. The load seems to be mainly about MemoryStreams with images. Any chance of using the provided stream directly instead or using a wrapping stream that limits the view?