Move fast paths around to gain a bit of new-solver perf Change in % compared to previous commit on 4 benchmarks. All measured locally on ragdoll (AMD RYZEN 3990X, x86_64). These benchmarks have been quite repeatable in the past, but don't exactly match perf runs. All benchmarks show change in instruction count First change is compared to baseline Commit ids may change on rebases, so these links may become outdated. | | nalgebra [check,debug,opt] | serde [check,debug, opt] | syn [check, debug, opt] | wg-grammar [check, debug, opt] | | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | | [move overflow check](https://github.com/rust-lang/rust/pull/158249/changes/039cc59ac1e2a32da460a046f2b2e479c870d0fb) | $${\color{green}-0.04\\%}$$<br> $${\color{green}-0.03\\%}$$<br> $${\color{green}-0.02\\%}$$ | $${\color{green}-0.15\\%}$$<br> $${\color{green}-0.12\\%}$$<br> $${\color{green}-0.11\\%}$$ | $${\color{green}-0.08\\%}$$<br> $${\color{green}-0.04\\%}$$<br> $${\color{green}-0.01\\%}$$ | $${\color{green}-0.32\\%}$$<br> $${\color{green}-0.31\\%}$$<br> $${\color{green}-0.29\\%}$$ | | [move fast path into evaluate_goal](https://github.com/rust-lang/rust/pull/158249/changes/8cc6291e8691df7d69e61fa322be376d0da05631) | $${\color{red}+0.61\\%}$$<br> $${\color{red}+0.60\\%}$$<br> $${\color{red}+0.43\\%}$$ | $${\color{red}+0.75\\%}$$<br> $${\color{red}+0.69\\%}$$<br> $${\color{red}+0.65\\%}$$ | $${\color{red}+0.55\\%}$$<br> $${\color{red}+0.36\\%}$$<br> $${\color{red}+0.14\\%}$$ | $${\color{red}+0.13\\%}$$<br> $${\color{red}+0.21\\%}$$<br> $${\color{red}+0.15\\%}$$ | | [remove fastpath from fullfilment loop](https://github.com/rust-lang/rust/pull/158249/changes/3536b417b53392757228279a335f89f8f7056358) | $${\color{red}+0.56\\%}$$<br> $${\color{red}+0.50\\%}$$<br> $${\color{red}+0.35\\%}$$ | $${\color{red}+3.33\\%}$$<br> $${\color{red}+2.76\\%}$$<br> $${\color{red}+2.55\\%}$$ | $${\color{red}+1.65\\%}$$<br> $${\color{red}+0.93\\%}$$<br> $${\color{red}+0.33\\%}$$ | $${\color{green}-5.06\\%}$$<br> $${\color{green}-5.00\\%}$$<br> $${\color{green}-4.65\\%}$$ | | [return stalled info from fast path](https://github.com/rust-lang/rust/pull/158249/changes/187954fb08d2d275043ff8d7a013b9534120c460) | $${\color{red}+0.16\\%}$$<br> $${\color{red}+0.16\\%}$$<br> $${\color{red}+0.12\\%}$$ | $${\color{red}+0.01\\%}$$<br> $${\color{red}+0.01\\%}$$<br> $${\color{red}+0.01\\%}$$ | $${\color{red}+0.24\\%}$$<br> $${\color{red}+0.15\\%}$$<br> $${\color{red}+0.05\\%}$$ | $${\color{green}-0.24\\%}$$<br> $${\color{green}-0.24\\%}$$<br> $${\color{green}-0.25\\%}$$ | | [move goal fast path into evaluate_goal_cold](https://github.com/rust-lang/rust/pull/158249/changes/4946875445c309d674e2500c85b1c72809f05e8c) | $${\color{red}+0.01\\%}$$<br> $${\color{red}+0.01\\%}$$<br> $${\color{red}+0.01\\%}$$ | $${\color{red}+0.02\\%}$$<br> $${\color{red}+0.02\\%}$$<br> $${\color{red}+0.02\\%}$$ | $${\color{red}+0.02\\%}$$<br> $${\color{red}+0.02\\%}$$<br> $${\color{red}+0.01\\%}$$ | $${\color{green}-0.01\\%}$$<br> $${\color{green}-0.01\\%}$$<br> $${\color{green}-0.01\\%}$$ | | [shuffle fastpaths around to before creating an evalctxt](https://github.com/rust-lang/rust/pull/158249/changes/58f22e89416534c46fde0248cb997ace6c0f662a) | $${\color{green}-0.44\\%}$$<br> $${\color{green}-0.41\\%}$$<br> $${\color{green}-0.30\\%}$$ | $${\color{green}-2.31\\%}$$<br> $${\color{green}-1.93\\%}$$<br> $${\color{green}-1.80\\%}$$ | $${\color{green}-1.29\\%}$$<br> $${\color{green}-0.77\\%}$$<br> $${\color{green}-0.29\\%}$$ | $${\color{green}-6.06\\%}$$<br> $${\color{green}-5.90\\%}$$<br> $${\color{green}-5.48\\%}$$ | | [fast path when adding goals](https://github.com/rust-lang/rust/pull/158249/changes/adbd01966efaabdab8f3b4ef7de3d504ccfb2e71) | $${\color{green}-0.62\\%}$$<br> $${\color{green}-0.58\\%}$$<br> $${\color{green}-0.41\\%}$$ | $${\color{green}-0.78\\%}$$<br> $${\color{green}-0.66\\%}$$<br> $${\color{green}-0.61\\%}$$ | $${\color{green}-0.36\\%}$$<br> $${\color{green}-0.28\\%}$$<br> $${\color{green}-0.10\\%}$$ | $${\color{green}-0.12\\%}$$<br> $${\color{green}-0.09\\%}$$<br> $${\color{green}-0.04\\%}$$ | | overall from baseline | $${\color{red}+0.24\\%}$$<br> $${\color{red}+0.23\\%}$$<br> $${\color{red}+0.16\\%}$$ | $${\color{red}+0.79\\%}$$<br> $${\color{red}+0.70\\%}$$<br> $${\color{red}+0.66\\%}$$ | $${\color{red}+0.60\\%}$$<br> $${\color{red}+0.36\\%}$$<br> $${\color{red}+0.13\\%}$$ | $${\color{green}-11.31\\%}$$<br> $${\color{green}-11.00\\%}$$<br> $${\color{green}-10.27\\%}$$ |
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
Why Rust?
-
Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.
-
Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.
-
Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo), auto-formatter (rustfmt), linter (Clippy) and editor support (rust-analyzer).
Quick Start
Read "Installation" from The Book.
Installing from Source
If you really want to install from source (though this is not recommended), see INSTALL.md.
Getting Help
See https://www.rust-lang.org/community for a list of chat platforms and forums.
Contributing
See CONTRIBUTING.md.
For a detailed explanation of the compiler's architecture and how to begin contributing, see the rustc-dev-guide.
License
Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.
Trademark
The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the "Rust Trademarks").
If you want to use these names or brands, please read the Rust language trademark policy.
Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.