Skip to content

Conversation

@scienty
Copy link

@scienty scienty commented Jul 11, 2025

Added support to List all the items in the queue so that it could be used as fixed size circular buffer.

With the client side code, check queue size for max buffer size and dequeue before enqueue to use it as circular buffer.

@i-e-b
Copy link
Owner

i-e-b commented Jul 14, 2025

Thanks for the suggestion.

I have a few concerns:

  • I think it would be better to expose an enumerator rather than specifically a list output
  • Locking and reading the entire queue into RAM is probably not a good way to check queue length
  • If it's ok to quietly lose queue items, then a memory-mapped standard Dequeue is probably a better option.

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.

3 participants