[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #25269 [Core Tor/Tor]: Set codegen-units to 1 in src/rust/Cargo.toml to eke out every last drop of performance
#25269: Set codegen-units to 1 in src/rust/Cargo.toml to eke out every last drop of
performance
------------------------------+------------------------
Reporter: cypherpunks | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Core Tor/Tor | Version:
Severity: Normal | Keywords: rust, easy
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
------------------------------+------------------------
Rust 1.24 now sets codegen-units to 16 by default to speed up compilation
time but it makes the final binary slower https://blog.rust-
lang.org/2018/02/15/Rust-1.24
> For maximum speed, setting `codegen-units` to `1` in your `Cargo.toml`
is needed to eke out every last drop of performance.
So [https://gitweb.torproject.org/tor.git/tree/src/rust/Cargo.toml
src/rust/Cargo.toml] should be changed with that to squeeze the most perf.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25269>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs