[Aspose.PSD NET] - High RAM Usage

Hi, Aspose.PSD seems to use a lot of RAM to load PSD files.

In the example project below, it uses up to 2.5GB of memory just to load a 222MB file (with multiple GC triggered).
In our real world usage, we’ve seen cases where it went up to 30GB loading the same file.

Can you guys take a look? Are there any ways to limit the memory usage? I’ve tried Aspose.PSD Performance Improvement using Customizable Cache|Documentation and LoadOptions.BufferSizeHint | Aspose.PSD for .NET API Reference but neither of them are working.

            using (var image = (PsdImage)Image.Load("source.psd", new PsdLoadOptions { DataRecoveryMode = DataRecoveryMode.MaximalRecover }))
            {
                Console.WriteLine("PSD Loaded!");
            }

            Console.WriteLine("Done!");

Link to example: AsposeDemo.zip - Google Drive

@OrangeLogic could you please change sharing restriction for the file in Google Drive. I get the error: “The organization that owns this item doesn’t allow you to access it”

I’ve edited the link. Can you try again?

@OrangeLogic I’ve downloaded input files. I’ll text you back after the investigation.

Do we have any updates?

@OrangeLogic
At this moment we are working on RAM usage optimization, but under the other ticket, current fixes should be useful for you issue too.

You can check the status of your ticket in our internal issue tracking system. Fixes will be delivered according to the terms mentioned in Free Support Policies.

Issue ID(s): PSDNET-2151

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@Dmitriy.Sorokin Got it, thanks.

@OrangeLogic I met the same RAM problem today.
@Dmitriy.Sorokin any update on this? Not sure how to track the issue in your internal tracking system.

@thangvip5432 For the next release, PSD Team is reworking the effects to optimize RAM consumption. Could you please provide input file and the code that was used to reproduce it.

An if this acceptable to you, could you please create separate forum topic. Thank you.

@Dmitriy.Sorokin I’m encountering the exact same problem. Could you please provide an estimated release date for PSDNET-2151 or direct me to a resource where I can track its progress?

@theguy9x unfortunately there is no way to reduce RAM consumption totally and fastly, that’s not a bug, but the demand in optimization of design of large graphic data processing. Every release solves a little part of this issue, with optimizing of the part of rendering. If you have similar issue, please provide code to reproduce it and input file. PSDNET-2151 is planned on 24.12, but team continuosly works on optimization in every release.