Open
Description
Describe the bug
Open any code snippet. Occasionally, I get stuck and find that the cpu usage is 100%.
It will return to normal after some time.

relate to: #287
To reproduce
- Create some random data to make the db.json file larger than 100kb.
- Open some code snippets with more content.
Version
3.11.0
OS
macOS 12.7.2
Validations
- Follow our Code of Conduct
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.