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

experiment: reduce compile times #937

Open
5 tasks
jondot opened this issue Oct 30, 2024 · 3 comments
Open
5 tasks

experiment: reduce compile times #937

jondot opened this issue Oct 30, 2024 · 3 comments

Comments

@jondot
Copy link
Contributor

jondot commented Oct 30, 2024

  • remove lazy_static -> OnceCell
  • feature-flag "heavy" middleware: compression tower-http (requires lots of compression algos), add to docs instructions how to enable the feature if turning on.

to analyze

  • tracing-subscriber (7s, lots of default features)
  • fs-err (5s, remove/alternative?)
  • make Storage optional including object_store (since object_store is heavy), when people need it they can add-in a feature flag
@felipesere
Copy link
Contributor

Can we also maybe feature flag the queue implemetations? Or are they needed for emails?

@jtwaleson
Copy link
Contributor

I would really appreciate faster compilation times. I added a couple of dependencies to my project and every re-deploy (in dev mode) takes about 1 to 2 minutes on an i5-1145G7. Any tips for performance optimizations are welcome!

Disclaimer: I'm a Rust noob so forgive my ignorance, maybe there are common ways to improve this which I simply haven't tried yet.

@NexVeridian
Copy link
Contributor

NexVeridian commented Jan 21, 2025

we could add a similar section to docs like the one that bevy has, for my projects nightly with cranelift is about 20-30% faster than stable rust

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants