iosMath
iosMath copied to clipboard
Partially Rendering Latex
For now, I believe anytime latex
property of MTUIMathLabel
is set, the whole latex string would be parsed and rendered again. I hope it would check if latex is appended and only render necessary parts instead of whole latex string. Or add a new method (-[MTUIMathLabel appendLatex:(NSString *)latexPart]
), which only re-renders necessary parts instead of start over. This can reduce rendering time if I'm appending a small part of latex to a very long latex string. And thus drop power consumption.
Suggested label: improvements
How much performance improvement do you expect here? I wrote an editor which uses the MTUIMathLabel
and anytime the user updates the math, the latex string is reprased and rendered again. I have not noticed any performance issues even on old phones (iPhone 4).
I open this issue because there is a possibility a user would render a latex string like "1+2+...+1000", and the user really inputs every term instead of using a summation. Also the expression terms could be random like "1.298+319.2+4019.9+...+1239174" (just an example), which cannot use a summation.
After this, he/she wants to append +1001
to it. There is penalty to render the whole string again, if the length of string is really huge.
I think MiKTeX is doing partial rendering. I used it to write my thesis.