-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow event iterators to surface owned data (#627)
* Allow event iterators to surface owned data Previously, event iterators were forced to handing out references to data, even if they could return owned data. This is not great because it requires the replay operator to clone the data to send it downstream. With this change, the event iterator can surface either owned or shared data, which allows the `Rc<EventLink>` to surface owned data when it is uniquely owned, and references when it is shared. This avoids cloning data when there is only a single replay operator attached to an event link. Signed-off-by: Moritz Hoffmann <antiguru@gmail.com> * Cow instead of Result Signed-off-by: Moritz Hoffmann <antiguru@gmail.com> --------- Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
- Loading branch information
Showing
2 changed files
with
27 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
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