I am using the code in the following post to convert math equations in OfficeMath to MathML.
In my sample word doc, each equation takes between a quarter to a half second to convert. For a document with 20 the running time is more than 5 seconds.
Is there a way to speed up the conversion?
All equations are very simple. Here are a few examples in MathML.
Have you also tried the latest (21.9) version of Aspose.Words for Java on your end? In case the problem still remains, then please ZIP and upload your source Word document (you are getting this problem with) here for testing. We will then investigate the issue on our end and provide you more information.
In this case, the problem simply occurs because you are using Aspose.Words for Java in evaluation mode. Please first apply license before you start Document processing:
public class AsposePerfTest extends DocumentVisitor {
public static void main(String[] args) {
try {
License lic = new License();
lic.setLicense("C:\\temp\\license.lic");
} catch (Exception ex) {
}
InputStream inputStream = AsposePerfTest.class.getResourceAsStream("/OMath2MML.docx");
long start = System.currentTimeMillis();
try {
Document doc = new Document(inputStream);
...
...