Skip to content

add frontend features to reduce the amount of dependencies and compil… - #141

Closed
arnaucube wants to merge 1 commit into
mainfrom
frontend-features
Closed

add frontend features to reduce the amount of dependencies and compil…#141
arnaucube wants to merge 1 commit into
mainfrom
frontend-features

Conversation

@arnaucube

@arnaucube arnaucube commented Aug 9, 2024

Copy link
Copy Markdown
Contributor

…ation time

The reasoning behind this is that compilation time now is too long, in part because dependencies on specific frontends, so if the compilation don't use some frontend it can be turned off by default. Also in a normal usage of the lib the dev would choose one of the available frontends, but probably not all of them simultaneously.

resolves #138

@arnaucube
arnaucube marked this pull request as draft August 9, 2024 05:28
@arnaucube
arnaucube marked this pull request as ready for review August 12, 2024 15:42
@arnaucube
arnaucube force-pushed the frontend-features branch 3 times, most recently from 0043c6a to c5bab2b Compare August 12, 2024 15:56
@arnaucube
arnaucube requested review from CPerezz and dmpierre and removed request for CPerezz August 12, 2024 16:23
@arnaucube
arnaucube force-pushed the frontend-features branch 2 times, most recently from 5bcbfe2 to 1c46ffc Compare August 18, 2024 03:40

@CPerezz CPerezz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expected Rust to not compile the deps that are not used within the final binary.

2 questions:

  • Have you checked that by creating a new binary and adding sonobe as a dep only using one frontend, if all of them are compiled? I know that Rust has some smart optimizations that work towards this things.

  • Do you have a sense of what improvements in compile time do we get with this PR? Would like to have the improvement noted somewhere.

@arnaucube
arnaucube force-pushed the frontend-features branch 3 times, most recently from ecaf6c0 to f0bb561 Compare August 28, 2024 02:14
@arnaucube
arnaucube marked this pull request as draft August 28, 2024 02:33
…ation time

The reasoning behind this is that compilation time now is too long, in
part because dependencies on specific frontends, so if the compilation
don't use some frontend it can be turned off by default.
@arnaucube

Copy link
Copy Markdown
Contributor Author

Closing this PR as it has been superseded by #168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add cargo features to disable by default the frontends when not needed

2 participants