Conversion from OfficeMath to MathML is slower after upgrade

After upgrading Aspose.Word Java from 22.2 to 22.10, the conversion from OfficeMath to MathML is significantly slower. My license does not expire until 2023-02-18.

Here is a sample program that reproduce the problem on my local machine. The time goes up from 5 seconds to about 38 seconds.

HtmlSaveOptions options = new HtmlSaveOptions();
options.setOfficeMathOutputMode(HtmlOfficeMathOutputMode.MATH_ML);

Document doc = new Document("C:\\MathQnA2.docx");
doc.accept(new DocumentVisitor() {
    @Override
    public int visitOfficeMathStart(OfficeMath officeMath) {
        try {
            System.out.println(officeMath.toString(options));
        }
        catch (Exception e) {
            throw new RuntimeException(e);
        }

        return VisitorAction.SKIP_THIS_NODE;
    }
});

Attached please find the Word document used.MathQnA2.docx (43.9 KB)

@fzeng2012 Thank you for reporting the problem to us. For a sake of correction it has been logged as WORDSNET-24561. We will keep you informed and let you know once the problem is resolved.
It looks like the performance decrees occurs starting from 22.7 version of Aspose.Words.

Thanks for the update.

1 Like

The issues you have found earlier (filed as WORDSNET-24561) have been fixed in this Aspose.Words for Java 23.3 update.