cerebroapp / cerebro

🔵 Cerebro is an open-source launcher to improve your productivity and efficiency
https://www.cerebroapp.com/
MIT License
8.27k stars 454 forks source link

feat(plugins): improve plugins load #639

Closed dubisdev closed 1 year ago

dubisdev commented 1 year ago

This PR should make Cerebro more performant.

The idea of the double renderer process was to make the second take care of the heavier tasks. However, it was doing too much work by duplicating tasks that are already done in the main renderer.

The loading of plugins and the control over the addition of new plugins was being done in both renderers, which led to an unnecessary waste of resources (duplicated chockidar instances watching folders, double loading of plugins)

image

With this PR, we make the second renderer do what it is supposed to do: take care of the async loads of plugins

image

ref #118