Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arnaucube
Copy link
Collaborator

@arnaucube arnaucube commented Aug 9, 2024

…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
Copy link
Member

@CPerezz CPerezz left a comment

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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