forked from zio/zio-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
HttpContentCodec
for Improved Performance and Caching
- Made `HttpContentCodec` a sealed trait with `Default` and `Filtered` subtypes. - Implemented codec instance caching to reduce redundant allocations. - Refactored the `only` method to utilize the `Filtered` subtype, allowing for efficient caching. - Updated the `lookupCache` to be more efficient with reduced duplication.
- Loading branch information
1 parent
16e2e2f
commit 48fd345
Showing
3 changed files
with
61 additions
and
57 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