ForNeVeR / xaml-math

A collection of .NET libraries for rendering mathematical formulae using the LaTeX typesetting style, for the WPF and Avalonia XAML-based frameworks
MIT License
641 stars 102 forks source link

Optimize TexPredefinedFormulaParser #339

Open ForNeVeR opened 1 year ago

ForNeVeR commented 1 year ago

Currently, a new TexPredefinedFormulaParser is constructed for each TexFormulaParser (even if it is currently singleton in most cases), and then the TexFormulaParser is populated with the data from the TexPredefinedFormulaParser.

We could do better:

When fixing this, look for TODO[#xxx] in the code.