diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-08-19 19:42:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-19 19:42:03 +0800 |
| commit | 4327e6903037d88f91d5b8d4609fdbe19e78541f (patch) | |
| tree | cd530fbc1e4da01aac43a14926722034f59249ad /compiler/rustc_codegen_llvm/src/attributes.rs | |
| parent | 9c46cdb43a371f35502a23cece900838ee53a5d2 (diff) | |
| parent | 1f77424a7902e0e0a5cdbbe650394a14f61637d0 (diff) | |
| download | rust-4327e6903037d88f91d5b8d4609fdbe19e78541f.tar.gz rust-4327e6903037d88f91d5b8d4609fdbe19e78541f.zip | |
Rollup merge of #143730 - pascaldekloe:fmt-radix-trim, r=tgross35
fmt of non-decimal radix untangled
Have the implementation match its decimal counterpart.
* Digit table instead of conversion functions
* Correct buffer size per radix
* Elimination of dead code for negative
* No trait abstraction for integers
#### Original Performance
```
fmt::write_10ints_bin 393.03ns/iter +/- 1.41
fmt::write_10ints_hex 316.84ns/iter +/- 1.49
fmt::write_10ints_oct 327.16ns/iter +/- 0.46
```
#### Patched Performance
```
fmt::write_10ints_bin 392.31ns/iter +/- 3.05
fmt::write_10ints_hex 302.41ns/iter +/- 5.48
fmt::write_10ints_oct 322.01ns/iter +/- 3.82
```
r? tgross35
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions
