diff options
| author | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-02-12 23:44:28 -0500 |
|---|---|---|
| committer | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-02-20 01:11:16 -0500 |
| commit | d712e3f4f4b7b002f984336031a13c864bea10b8 (patch) | |
| tree | 706a7fb65262a610ed24673120b2e7bf3cb831dc /compiler/rustc_interface/src | |
| parent | 0b9f6ad99482c9fc35baa5f40cebf21be4fd98b3 (diff) | |
| download | rust-d712e3f4f4b7b002f984336031a13c864bea10b8.tar.gz rust-d712e3f4f4b7b002f984336031a13c864bea10b8.zip | |
perf: improve write_fmt to handle simple strings
Per @dtolnay suggestion in https://github.com/serde-rs/serde/pull/2697#issuecomment-1940376414 - attempt to speed up performance in the cases of a simple string format without arguments:
```rust
write!(f, "text") -> f.write_str("text")
```
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
