perf: Simplify getSettings() #2734
Labels
priority: high
A high priority/important request
scope: performance issues
Issues with speed or responsiveness
type: internal
Only regards development or contributing
Description
getSettings()
is called often in the plugin.It currently does a lot of work for every call:
Required Steps
It would be sensible to move everything but the last line out to some function like
updateAndReSaveSettings()
that is called inmain.ts
- so that this updating is only done oncer per session, instead of once per call togetSettings()
.How to Test
No response
The text was updated successfully, but these errors were encountered: