-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
concurrent-api: shave some allocations from new Scope (#3185)
Motivation: In the allocation profile we see anonymous instances of the new `Scope` being created. While not a big deal, we can do better. Modifications: We can shave these off of the default implementation by making `CopyOnWriteContextMap`, and really any context map, an instance of `Scope`. The `close()` method just needs to then ask the current provider to set the context to itself. Result: Less allocations.
- Loading branch information
1 parent
47601da
commit b625ab7
Showing
5 changed files
with
62 additions
and
220 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
181 changes: 0 additions & 181 deletions
181
...talk-concurrent-api/src/main/java/io/servicetalk/concurrent/api/ConcurrentContextMap.java
This file was deleted.
Oops, something went wrong.
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