You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently ESPHome creates a subdir for every yaml file in which it compiles the code. This tends to be very inefficient, especially if you have multiple projects that share the same platform.
Example: I have 5 projects with an ESP8266 (wemos d1 mini). All of them share more or less the same components.
If now an update of ESPHome is made I have to recompile all of them. Thats fine, but there is one catch:
All base components that are typical for the platform, and also for ESPHome, are compiled 5 times.
On weaker platforms like a RPI4 this takes a long time. In my case it takes around 230 seconds for one single project. So this sums up quite fast to 30 minutes of compiling each time an update of ESPHome is made.
My idea would be: Have one shared folder for base components per platform (ESP8266, ESP32, etc.)
This way the bulk load of compiling has to be done only once. Other projects needing the same components (per platform) can reuse the compiled objects and therefore save a lot of time recompiling.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently ESPHome creates a subdir for every yaml file in which it compiles the code. This tends to be very inefficient, especially if you have multiple projects that share the same platform.
Example: I have 5 projects with an ESP8266 (wemos d1 mini). All of them share more or less the same components.
If now an update of ESPHome is made I have to recompile all of them. Thats fine, but there is one catch:
All base components that are typical for the platform, and also for ESPHome, are compiled 5 times.
On weaker platforms like a RPI4 this takes a long time. In my case it takes around 230 seconds for one single project. So this sums up quite fast to 30 minutes of compiling each time an update of ESPHome is made.
My idea would be: Have one shared folder for base components per platform (ESP8266, ESP32, etc.)
This way the bulk load of compiling has to be done only once. Other projects needing the same components (per platform) can reuse the compiled objects and therefore save a lot of time recompiling.
Beta Was this translation helpful? Give feedback.
All reactions