Repository navigation
Enable thread-local buffer cache for Thread that is used by EventExec… - #12158
Merged
Merged
Conversation
…utor by default Motivation: #12109 changed the default of using the thread local cache for buffers only for FastThreadLocalThread. While this is good it also means that it would affect everyone that use a custom ThreadFactory when construct the EventLoop / EventExecutor Modifications: Make use of ThreadExecutorMap to check if the Thread is used by any EventExecutor and if so also enable the cache. Result: Fixes #12109 (comment)
franz1981
approved these changes
Mar 9, 2022
franz1981
left a comment
Contributor
There was a problem hiding this comment.
thanks @normanmaurer !
chrisvest
approved these changes
Mar 9, 2022
chrisvest
pushed a commit
that referenced
this pull request
Mar 9, 2022
…utor by default (#12158) Motivation: #12109 changed the default of using the thread local cache for buffers only for FastThreadLocalThread. While this is good it also means that it would affect everyone that use a custom ThreadFactory when construct the EventLoop / EventExecutor Modifications: Make use of ThreadExecutorMap to check if the Thread is used by any EventExecutor and if so also enable the cache. Result: Fixes #12109 (comment)
raidyue
pushed a commit
to raidyue/netty
that referenced
this pull request
Jul 8, 2022
…utor by default (netty#12158) Motivation: netty#12109 changed the default of using the thread local cache for buffers only for FastThreadLocalThread. While this is good it also means that it would affect everyone that use a custom ThreadFactory when construct the EventLoop / EventExecutor Modifications: Make use of ThreadExecutorMap to check if the Thread is used by any EventExecutor and if so also enable the cache. Result: Fixes netty#12109 (comment)
franz1981
pushed a commit
to franz1981/netty
that referenced
this pull request
Aug 22, 2022
…utor by default (netty#12158) Motivation: netty#12109 changed the default of using the thread local cache for buffers only for FastThreadLocalThread. While this is good it also means that it would affect everyone that use a custom ThreadFactory when construct the EventLoop / EventExecutor Modifications: Make use of ThreadExecutorMap to check if the Thread is used by any EventExecutor and if so also enable the cache. Result: Fixes netty#12109 (comment)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…utor by default
Motivation:
#12109 changed the default of using the thread local cache for buffers only for FastThreadLocalThread. While this is good it also means that it would affect everyone that use a custom ThreadFactory when construct the EventLoop / EventExecutor
Modifications:
Make use of ThreadExecutorMap to check if the Thread is used by any EventExecutor and if so also enable the cache.
Result:
Fixes #12109 (comment)