Skip to content

Added circular buffer instead of using memmove#144

Open
ameyakakade wants to merge 1 commit intotsoding:masterfrom
ameyakakade:add-circular-buffer
Open

Added circular buffer instead of using memmove#144
ameyakakade wants to merge 1 commit intotsoding:masterfrom
ameyakakade:add-circular-buffer

Conversation

@ameyakakade
Copy link

Instead of calling memmove every time when adding a sample to in_raw, I made it a circular buffer. There is a 'index' that keeps track of the last written sample.

Has minor performance gains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant