-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove need for spawn in BytestreamServer
Spawns are very expensive to make and one of the most common API points is BystreamServer::read. From a long time ago it was really hard to get lifetimes to live long enough here for the stream API. Armed with more experience the lifetimes are now resolved, so we do not need to use this pointless spawn. Now we will pipe the data from the store to the client in the same spawn, which means we will have a very high chance of being on the same thread when shipping bytes to the client.
- Loading branch information
Showing
3 changed files
with
81 additions
and
61 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
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