Arpad Borsos
0334c45bb5
Write char::DebugEscape
sequences using write_str
...
Instead of writing each `char` of an escape sequence one by one,
this delegates to `Display`, which uses `write_str` internally
in order to write the whole escape sequence at once.
2024-05-20 10:04:44 +02:00
Arpad Borsos
5fe296c6c5
Add benchmarks for impl Debug for str
...
In order to inform future perf improvements and prevent regressions,
lets add some benchmarks that stress `impl Debug for str`.
2024-05-01 09:54:29 +02:00
The 8472
3f55e8665c
benchmarks for Chars::advance_by
2023-11-27 22:06:35 +01:00
Thom Chiovoloni
ebbccaf6bf
Respond to review feedback, and improve implementation somewhat
2022-02-05 11:15:18 -08:00
Thom Chiovoloni
ed01324835
Fix zh::SMALL string in core::str benchmarks
2022-02-05 11:15:17 -08:00
Thom Chiovoloni
628b217326
Optimize core::str::Chars::count
2022-02-05 11:15:17 -08:00