Document.Save using huge memory

Hello, We are using aspose pdf latest version. however when we save data by document.save it uses enormous amount of memory when we are dealing with some large content.
Likewise if there are two htmlfragment with 9K character in each then it hangs and using 2.5GB+ of memory
any suggestions.

@fouadinfo

Thank you for contacting support.

Would you please share SSCCE code along with necessary files, if any, so that we may try to reproduce and investigate it in our environment. Before sharing requested data, please ensure using latest version of the API.