embassy/embassy-hal-common
Dario Nieuwenhuis f95aafc90e common: allow atomic ringbuf to fill up to N instead of just N-1.
This allows the ringbuf to be filled up to `N` instead of just `N-1`, using some fun tricks on the indices.

The advantage is better performance: Before, the first write would fill N-1 bytes, The second would write just the 1 byte left before wrapping, then N-2. Then 2, then N-3, and so on. This would result in more smaller chunks, so worse perf. This problem is gone now.
2023-03-02 01:01:19 +01:00
..
src common: allow atomic ringbuf to fill up to N instead of just N-1. 2023-03-02 01:01:19 +01:00
Cargo.toml all Cargo.toml: Add license to all crate Cargo.toml files 2022-10-07 12:41:56 +02:00