Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lazier versions of the TQueue and TBQueue reading functions #62

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

edmundnoble
Copy link

As a user of TQueue and TBQueue I don't really mind that the queue is amortized and not real-time. However I do want the power to reverse the write end of the queue without evaluating the elements of the queue, which is not possible right now as the datatype is opaque.

This PR adds "read" functions that use Solo to let the user separate the write end's reversal from the evaluation of elements, and reimplements the existing "read" functions using them.

I think it should be less controversial than #12 and not require extensive benchmarking, but #12 makes this PR unnecessary. #11 would perhaps be improved by something like this PR but it's not as important for #11.

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.

None yet

1 participant