023fd7e74a
Prefer to_string() to format!() Simple benchmarks suggest in some cases it can be faster by even 37%: ``` test converting_f64_long ... bench: 339 ns/iter (+/- 199) test converting_f64_short ... bench: 136 ns/iter (+/- 34) test converting_i32_long ... bench: 87 ns/iter (+/- 16) test converting_i32_short ... bench: 87 ns/iter (+/- 49) test converting_str ... bench: 54 ns/iter (+/- 15) test formatting_f64_long ... bench: 349 ns/iter (+/- 176) test formatting_f64_short ... bench: 145 ns/iter (+/- 14) test formatting_i32_long ... bench: 98 ns/iter (+/- 14) test formatting_i32_short ... bench: 93 ns/iter (+/- 15) test formatting_str ... bench: 86 ns/iter (+/- 23) ``` |
||
---|---|---|
.. | ||
Cargo.toml | ||
chalk_context.rs | ||
dropck_outlives.rs | ||
evaluate_obligation.rs | ||
implied_outlives_bounds.rs | ||
lib.rs | ||
lowering.rs | ||
normalize_erasing_regions.rs | ||
normalize_projection_ty.rs | ||
type_op.rs |