Single module Natural to reduce maintenance burden #72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A new branch
single-module
is also available in the mentioned projects for local testing.OKpilot
Before
After
Epicerio
Before
After
Ecolock
Before
After
Natural
Before
After
Conclusion
All applications grew, by ~4-100kb. So 100.1% - 103.0% of original size.
Compilation time is a bit shorter for bigger application such as OKpilot and Epicerio. But small application such as Ecolock suffer a huge increase of compilation time. I assume it spend a lot of time to treeshake things that are never needed at all. So overall it's 84.9% - 162% of original time.
Less relevant but Natural itself is 96.6% of original size and 75.7% of compile time.
It is not as clear as I expected. But because bundle size is probably the most critical measure of all, and because we already have multiples modules, I'd tend to not change anything.
WDTY ?