This PR is based on #9.
The main speedup is to make all the queries for notes, before querying the tags, otherwise, each note query needs to wait for the tags query. Also I use Promise.all to fire all tags queries simultaneously so it's faster then making all the queries sequentially. This reduced the loading time for a big folder from ~8 sec to ~4 sec.
I added a text "Loading..." when the GUI is waiting for the "backend" to feed it data. So the user feels it's loading faster.
This PR is based on #9. The main speedup is to make all the queries for notes, before querying the tags, otherwise, each note query needs to wait for the tags query. Also I use
Promise.all
to fire all tags queries simultaneously so it's faster then making all the queries sequentially. This reduced the loading time for a big folder from ~8 sec to ~4 sec.I added a text "Loading..." when the GUI is waiting for the "backend" to feed it data. So the user feels it's loading faster.