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

receive-message memory #23

Open
ecpeterson opened this issue Nov 12, 2020 · 0 comments
Open

receive-message memory #23

ecpeterson opened this issue Nov 12, 2020 · 0 comments

Comments

@ecpeterson
Copy link
Contributor

If receive-message is called repeatedly on a given inbox, it may fruitlessly search through a large head of messages many times. Instead, one might maintain a pointer (per message type) to the position in the queue through which the search has already been performed, so that future calls skip past this head.

This is the kind of optimization that is more relevant on hardware and for very large message queues, neither of which is true in our application (I think). Still, it's a pleasant sort of cleverness.

An implementation of this would be connected to #17 .

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

No branches or pull requests

1 participant