aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2023-03-02 00:01:49 +0000
committerGitHub <[email protected]>2023-03-02 00:01:49 +0000
commit4ac257adb90ba25b12528f7ffed365f59ee60a46 (patch)
tree03e268b48cc9aec840783345ed7a86d9f58bbece /README.md
parentc4f4aa10f9af2fafe4b3c01a0b0358883cf96b14 (diff)
parentf95aafc90e365bbdd243c0ed5069ff23abfa8be4 (diff)
Merge #1255
1255: common: allow atomic ringbuf to fill up to N instead of just N-1. r=Dirbaio a=Dirbaio Extracted out of #1208. Since I don't think that'll end up using the ringbuf in the end, I've separated it. 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. bors r+ Co-authored-by: Dario Nieuwenhuis <[email protected]>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions