Hello, we were going to update Aspose.Words Java to the latest version (23.6) and noticed a huge performance degradation of Document.updateFields()
method. Trying other versions I noticed that it was introduced in version 23.3
Example document: example_performance.docx (1.8 MB)
Example code fragment:
Document document = new Document("example_performance.docx");
long start = System.currentTimeMillis();
document.updateFields();
long end = System.currentTimeMillis();
System.out.println("updateFields() took " + (end - start) + " ms");
Since version 23.3 Document.updateFields()
takes 3-4x more time to execute compared to 23.2.