diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-05-15 18:54:57 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-05-29 12:45:07 -0400 |
| commit | 299ac7589410a4e9541d0483161abb9e455e0ec1 (patch) | |
| tree | 5725b24abd6a332ea3f575fd861c12b023b1f4c0 /library/std/src/sys/unix/stack_overflow.rs | |
| parent | 9f75dbfa69ba8508fa7765305f75cd96dff06078 (diff) | |
| download | rust-299ac7589410a4e9541d0483161abb9e455e0ec1.tar.gz rust-299ac7589410a4e9541d0483161abb9e455e0ec1.zip | |
Specialize single-element writes to buffer
copy_from_slice generally falls back to memcpy/memmove, which is much more expensive than we need to write a single element in. This saves 0.26% instructions on the diesel benchmark.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
