-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
listen: Batch messages passing through a
Filter
if they are ZSTs.
Ideally, we would always batch messages, but doing that with an appropriate size of stack-allocated buffer would naïvely require the caller to specify a size, which is a change with a larger impact. In the ZST case we can just buffer up to `usize::MAX` messages for free. (The `const {}` block probably doesn't do anything, but I put it there to make it blatantly obvious to readers that the branch is statically determined.)
- Loading branch information
Showing
1 changed file
with
82 additions
and
12 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