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.

```
<math>
<mi mathvariant="bold-italic">D</mi>
<mfenced separators="|">
<mrow>
<mn mathvariant="bold-italic">3</mn>
<mo mathvariant="bold-italic">,</mo>
<mn mathvariant="bold-italic">10</mn>
</mrow>
</mfenced>
</math>
<math>
<mn>97</mn>
<mo>.</mo>
<mn>5</mn>
<mo>%</mo>
</math>
```