General performance issue with Aspose when updating in Java

Hey,

We are currently working on upgrading our Aspose version to 20.6. In this process we have noticed quite a performance slowdown when merging documents.
A colleague conducted the following performance test:

Aspose version (Words/PDF) | Small docx (average time in mS) | Large docx (average time in mS)
17.8 / 17.8 | 148 | 3775
18.4 / 18.3 | 180 | 3840
19.6 / 19.6 | 184 | 4575
20.6 / 20.6 | 209 | 4962

Small docx: 9 pages, 128 KB
Large docx: 714 pages, 32,5 MB

This is a slowdown of 31.44% for the large documents and 41.21% for the small documents.

Another test we did where the documents are roughly 100-140 pages long and contain lots of different mergefields the slowdown was more like 80+%.
Here we used our existing system as a base and updated the Aspose version with as few changes as possible to the existing codebase.

Can you confirm that the newer versions are quite a bit slower? And if so,
(1) Are there plans to boost the performance?
(2) Is there a workaround that does not increase the merging time as much?

Thank you

@ncmwp

Please try the latest version of Aspose.Words for Java 20.8. Hope this helps you.

If you still face problem, please ZIP and attach your input Word document here for testing. We will investigate the issue and provide you more information on it.