paperproof icon indicating copy to clipboard operation
paperproof copied to clipboard

Parser can be optimized further by separating pretty-print and tree construction into two different stages

Open antonkov opened this issue 1 year ago • 0 comments

Each MVarId is now printed at least twice - once in goalsBefore and once in goalsAfter (sometimes unnecessary even more from parent nodes when it already handled in the subtree - and then it's also discarded). Profiling shows that pretty printing takes ~90% on big proofs. By separating {MVarId => GoalInfo} mapping from ProofSteps we could cheaply optimize parser ~x2

antonkov avatar Feb 12 '24 00:02 antonkov