diff options
| author | Timo <30553356+y21@users.noreply.github.com> | 2025-04-21 14:38:52 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-21 14:38:52 +0000 |
| commit | cc00c77607dc4b4b59013a530f30e9ed19e78a23 (patch) | |
| tree | 7a6bb8d2578e3b296c9b9d57430a913f983397cf /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | f829f8cd5b604c0a792e10f2e77050099cdd4a0f (diff) | |
| parent | b52bd96713d1a34b02017c0e272ebd15102885aa (diff) | |
| download | rust-cc00c77607dc4b4b59013a530f30e9ed19e78a23.tar.gz rust-cc00c77607dc4b4b59013a530f30e9ed19e78a23.zip | |
Replace interning of string literals with preinterned symbols (#14650)
On
https://github.com/rust-lang/cargo/commit/8ddf3676d15d6c3464c5eb16dbff4346d1a8db87
it's a slight improvement
```
$ hyperfine -w 2 -r 100 -p 'touch src/cargo/lib.rs' 'cargo +master clippy' 'cargo +preintern clippy'
Benchmark 1: cargo +master clippy
Time (mean ± σ): 6.908 s ± 0.063 s [User: 6.134 s, System: 0.690 s]
Range (min … max): 6.757 s … 7.045 s 100 runs
Benchmark 2: cargo +preintern clippy
Time (mean ± σ): 6.815 s ± 0.065 s [User: 6.039 s, System: 0.692 s]
Range (min … max): 6.653 s … 6.968 s 100 runs
Summary
cargo +preintern clippy ran
1.01 ± 0.01 times faster than cargo +master clippy
```
Part 1 of removing `Symbol <-> str` conversions
changelog: none
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
