ForNeVeR / ForNeVeR/xaml-math

Optimize TexPredefinedFormulaParser

Open
#339 0 comments 0 reactions 0 assignees View on GitHub
help-wanted kind:refactoring
Dominant language
C#
Stars
719
Forks
113
Avg merge
6d 12h
Merged PRs (30d)
1

Description

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:
- parse once
- parse on demand?
- get rid of these pesky signatures `Func` in `TexFormulaParser::predefinedFormulas`.

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.