Skip to content

Enable thread-local buffer cache for Thread that is used by EventExec… - #12158

Merged
chrisvest merged 1 commit into
4.1from
cache_for_executor_thread
Mar 9, 2022
Merged

chrisvest merged 1 commit into
4.1from
cache_for_executor_thread

Conversation

@normanmaurer

Copy link
Copy Markdown
Member

…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)

…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 franz1981 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @normanmaurer !

@chrisvest
chrisvest merged commit 2401841 into 4.1 Mar 9, 2022
@chrisvest
chrisvest deleted the cache_for_executor_thread branch March 9, 2022 16:24
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants