summary refs log tree commit diff
path: root/library/proc_macro/src/bridge/buffer.rs
AgeCommit message (Collapse)AuthorLines
2021-07-01proc_macro/bridge: Remove dead code Slice typeJade-29/+0
See https://github.com/rust-lang/rust/pull/85390#discussion_r662464868
2021-05-29Write primitive types via array buffersMark Rousskov-1/+16
This allows a more efficient implementation (avoiding a fallback to memmove, which is not optimal for short writes). This saves 0.29% on diesel.
2021-05-29Switch to reserve over extend_from_sliceMark Rousskov-25/+21
This is a 0.15% win on diesel.
2021-05-29Specialize single-element writes to bufferMark Rousskov-0/+15
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.
2020-07-27mv std libs to library/mark-0/+146