-
-
Notifications
You must be signed in to change notification settings - Fork 723
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: optimize file reads in fs module
By implementing a file stream and prefering std::fs::File instead of its tokio async variant, the fs module performance improves significantly when reading files resulting in ~79% more req/sec using ~57 less memory in Linux. A similar result should also be expected in Unix targets.
- Loading branch information
Showing
2 changed files
with
51 additions
and
93 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