Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

RingBuffer read/write performance optimization #23

Open
mpv89 opened this issue Dec 7, 2018 · 0 comments
Open

RingBuffer read/write performance optimization #23

mpv89 opened this issue Dec 7, 2018 · 0 comments

Comments

@mpv89
Copy link

mpv89 commented Dec 7, 2018

read() and write() functions of RingBuffer are wrapped around a CriticalGuard, meaning interrupts will be disabled even for large reads and writes, which can cause performance issues.

Consider only guarding the necessary info to do the copy and then execute the copy itself outside the guard, for example. Alternatively, don't guard it and let the drivers handle interrupts locally.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant