Skip to content

Conversation

@kate-osborn
Copy link
Contributor

Resolves FIXME:

Making an entirely new buffer is inefficient and multiplies memory operations.
Use a double-buffer approach - create two buffers and exchange them between the producer and consumer
routines. NOTE: pass-by-reference, and reset buffer to length 0, but retain capacity.

@kate-osborn kate-osborn requested a review from a team as a code owner October 14, 2022 21:44
@github-actions github-actions bot added the bug Something isn't working label Oct 14, 2022
Copy link
Contributor

@pleshakov pleshakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kate-osborn kate-osborn force-pushed the fix/use-double-buffer branch from e4fb601 to 86b8887 Compare October 21, 2022 16:25
@kate-osborn kate-osborn force-pushed the fix/use-double-buffer branch from 86b8887 to 3d39dee Compare November 7, 2022 18:47
@kate-osborn kate-osborn force-pushed the fix/use-double-buffer branch from 3d39dee to ddd584f Compare November 16, 2022 17:25
@kate-osborn kate-osborn merged commit 6520a4d into main Nov 16, 2022
@kate-osborn kate-osborn deleted the fix/use-double-buffer branch November 16, 2022 17:34
miledxz added a commit to miledxz/nginx-gateway-fabric that referenced this pull request Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants