mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
5d7b58fd1a
We previously had this and removed it because it caused runtime slowdowns (discussion in #11102), but that was in release mode. Debug mode is already very slow at runtime. In my opinion, debug mode is mostly for the edit-compile-test cycle which is currently dominated by compile times, so sacrificing runtime for compile time makes sense. I’ve observed a ~30% improvement of compile times with this. This figure is consistent between a very fast desktop with 4 cores / 8 threads and a not-as-fast laptop with 2 cores / 4 threads. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: ad1b11771b93ced67b409436c7bf0f493ec4663a
17 lines
245 B
TOML
17 lines
245 B
TOML
[workspace]
|
|
members = [
|
|
"ports/cef",
|
|
"ports/geckolib",
|
|
"ports/servo",
|
|
"support/android/build-apk",
|
|
]
|
|
|
|
[profile.dev]
|
|
codegen-units = 4
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
# Uncomment to profile on Linux:
|
|
# debug = true
|
|
# lto = false
|