Open jkelleyrtp opened 2 months ago
Different projects have good reasons for enabling different flags. I think some of these would be ok to enable by default in the template:
lto = true
). I don't see a problem with enabling these in release modeopt-level = "z"
. If you care more about performance this isn't ideal, but we can enable these by default with a comment in the templateBut others could cause issues and should't be enabled by default:
panic = "abort"
and strip = true
) can make your application smaller, but they make debugging much more difficult. I don't think we should enable these by default
Feature Request
We have a project that shows how to get a tiny dioxus: https://github.com/ealmloff/tiny-dioxus We have a guide on getting dioxus web as small as possible: https://dioxuslabs.com/learn/0.5/cookbook/optimizing
We should just do this by default rather than making optimizations an opt-in feature