Aspose.Words performance issue came back WORDSNET-26003

Hi guys,

I am upgrading Aspose.Words from 24.2 to 25.10.
I can see one of issues we raised in the past came back in the latest Aspose.Words

I raised multiple issues in below tickets. Eventually allocated official bug number WORDSNET-26003.
https://forum.aspose.com/t/iis-application-performance-degrade-after-populating-large-document/271569/7

After WORDSNET-26003 resolved, I created a unit test to just monitor bug does not come back after upgrade. The unit test now takes above 2 seconds to finish.

Below code is nunit test in .net 4.8

[
    Test, 
    Timeout(1000) // Up to Aspose Word 20.11, it takes about 5-700ms to create 1000 object. From 23.x it takes a lot more, taking about 2000ms 
    // expect this test to finish in less than 1 sec
]
public void EmptyDocumentCreationPerformance_Test()
{
    var _ = new Document(); // just to load into memory

    for(int i = 0; i < 1000; i++)
    {
        var __ = new Document();
    }
}

We have a business case that creates lots of small word documents and merge them later. It has some negative impact if this bug comes back.

Looking forward to getting some feedback.

Regards

@sentientsoft

It appears you are experiencing performance issues with Aspose.Words after upgrading to version 25.10, particularly regarding the creation of multiple small documents. The unit test you provided indicates that the time taken to create 1000 document objects has significantly increased.

To address this, I recommend the following steps:

  1. Profile Your Code: Utilize a profiler to identify any bottlenecks in your code. This will help determine if the performance issue is related to the document creation process or other factors.

  2. Optimize Document Creation: If your application frequently creates many small documents, consider reusing document instances where possible instead of creating new ones each time. This can help reduce overhead and improve performance.

  3. Check for Updates: Ensure you are using the latest version of Aspose.Words, as performance improvements and bug fixes are often included in new releases.

  4. Contact Support: Since you mentioned a specific bug (WORDSNET-26003), it may be beneficial to reach out to Aspose support for further assistance. They can provide insights into whether this issue has been addressed in the latest updates or if there are any workarounds.

  5. Consider Alternative Approaches: If the performance issue persists, you might explore batching document creation or merging documents after creation to minimize the impact on performance.

If you require further assistance or specific code examples, please feel free to ask!

@sentientsoft
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-28754

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.