On Thu, Apr 5, 2018, at 8:19 AM, Henri Sivonen wrote: > For encoding_rs, -O2 vs -O3 has pretty big performance effects in both > directions. (Didn't measure code size.) I think I'd rather have the > -O3 scenario than the -O2 scenario for encoding_rs. > > Can we make a particular vendored crate (encoding_rs) use -O3 while > the default for Rust code remains at -O2?
Unfortunately there's no support for this in cargo right now. Manish has an RFC that would add a way to do this: http://rust-lang.github.io/rfcs/2282-profile-dependencies.html https://github.com/rust-lang/rust/issues/48683 The folks working on webrender have also asked for this: https://bugzilla.mozilla.org/show_bug.cgi?id=1413285 -Ted _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform