It’s impossible to track down performance issues.
Here’s an example of how performance data looks.
In this example it took ~10 seconds to type a word (Obsidian by and large unresponsive with >80% system CPU
The performance degrades further with every heading rename, rendering Obisdian unasable after 5-10 renames.
I suspect this is always the case, but less noticeable with smaller documents.