You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm reading large pptx files slide-by-slide with limited RAM (azure functions), so after using SlidePart.Slide property the slide is loaded into memory and will be unloaded only when the pptx will be unloaded which means that memory consumption is growing with every slide.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm reading large pptx files slide-by-slide with limited RAM (azure functions), so after using SlidePart.Slide property the slide is loaded into memory and will be unloaded only when the pptx will be unloaded which means that memory consumption is growing with every slide.
For now I'm using internal
OpenXmlPart.SetPartRootElementToNull()
via reflection to release the memory.https://github.com/OfficeDev/Open-XML-SDK/blob/8a29bec8be9221e6b2eefb962f41b95b8391a773/src/DocumentFormat.OpenXml/Packaging/OpenXmlPart.cs#L608
Is there an official way to unload memory when it's not needed anymore? Or maybe it's possible to mark this method as public?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions