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

API for Creating Builds that Only Include Features Being Used #32308

Open
jfftck opened this issue May 17, 2024 · 2 comments
Open

API for Creating Builds that Only Include Features Being Used #32308

jfftck opened this issue May 17, 2024 · 2 comments
Labels
B-feature-tracking This issue tracks a particular high-level feature C-untriaged New issues that haven't been triaged yet

Comments

@jfftck
Copy link

jfftck commented May 17, 2024

Describe the new feature:
It would be nice to have an API that could include only the HTML and CSS features being used to create a custom build, this could replace the large Electron builds for desktop apps. Since this project is smaller, it would make a better base to create a slimmer runtime. Along with this, there should be an option for the build to disable the large memory cache, since most apps shouldn't need to grow much larger than when they start up.

This would fit nicely with the decoupled JavaScript runtime plans.

@jfftck jfftck added B-feature-tracking This issue tracks a particular high-level feature C-untriaged New issues that haven't been triaged yet labels May 17, 2024
@mrobinson
Copy link
Member

This could make sense, but I think it should be guided by measurement. Layout, is one of the more lightweight parts of Servo. You can observe this by compiling Servo yourself. The script crate takes much more time to compile than the two layout systems we have. Turning off CSS features is likely not going to gain you very much.

@sagudev
Copy link
Member

sagudev commented May 18, 2024

If we can somehow make perfs to take effect in compile time as opt-in (so they would still work in runtime, but if you disable them in compile time you do not get it compiled so runtime pref would not work).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-feature-tracking This issue tracks a particular high-level feature C-untriaged New issues that haven't been triaged yet
Projects
None yet
Development

No branches or pull requests

3 participants