Optimize tiny-skia, rustybuzz, tty-parser in dev builds

Cosmic-comp seems to spend a lot of CPU time here, particularly in debug
builds. The Iced tiny-skia render probably could use some optimization,
but it's expected that software rendering without optimization will
perform quite poorly.

Optimizing just these crates doesn't seem to add measurably to build
time but does help noticeably.
This commit is contained in:
Ian Douglas Scott 2024-03-22 09:50:30 -07:00 committed by Victoria Brekenfeld
parent 39ebf39e4f
commit f53e5a971d

View file

@ -100,6 +100,15 @@ profile-with-tracy = ["profiling/profile-with-tracy"]
[profile.dev]
lto = "thin"
[profile.dev.package.tiny-skia]
opt-level = 2
[profile.dev.package.rustybuzz]
opt-level = 2
[profile.dev.package.ttf-parser]
opt-level = 2
[profile.fastdebug]
debug = true
inherits = "release"