-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
listen: Allow
Filter
to have a stack buffer for output batches.
I haven’t run benchmarks to confirm that this is actually worth doing. I believe that either it is, or the whole message-batching system needs rethinking — this is just finishing the implementation of the current strategy. Something we could perhaps do instead of this is create a notion of message delivery “transactions” within which individual messages are delivered one at a time, allowing taking a lock for the duration. This way, it wouldn’t be necessary to compile messages into a slice to achieve efficient locking; the disadvantage is that it exposes more locking.
- Loading branch information
Showing
2 changed files
with
67 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters