chore: measure impact of the Graph mixins on tree-shaking [poc]#639
chore: measure impact of the Graph mixins on tree-shaking [poc]#639
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
POC completed, so closing |
DISCLAIMER
Context
The Graph class is very large and it has been partially splitted into mixins, to organize the code per feature. However, at runtime, this is the same as having the whole code in the Graph class definition, so some unused elements are sometimes included in an application.
This increase the size of the application. We have a plugin mechanism, that could replace this in the future.
Prior providing ways to improve the tree-shaking in this situation, here are some figures about the impact of the mixins in 2 very simple applications included in this repository.
Disclaimer
The sole purpose of this PR is to measure the impact of removing mixins on the tree-shaking.
The TypeScript compilation pass here but some features are lost or may not work in the 2 examples used to measure the impact of the removals.
Results
Note: initial commit = few commits after tag v0.14.0
ts-example no default
js-example no default