Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Aug 30, 2016

What changes were proposed in this pull request?

When a thread is a Netty's FastThreadLocalThread, Netty will use its fast ThreadLocal implementation. It has a better performance than JDK's (See the benchmark results in netty/netty#4417, note: it's not a fix to Netty's FastThreadLocal. It just fixed an issue in Netty's benchmark codes)

This PR just changed the ThreadFactory to Netty's DefaultThreadFactory which will use FastThreadLocalThread. There is also a minor change to the thread names. See https://github.com/netty/netty/blob/netty-4.0.22.Final/common/src/main/java/io/netty/util/concurrent/DefaultThreadFactory.java#L94

How was this patch tested?

@zsxwing
Copy link
Member Author

zsxwing commented Aug 30, 2016

/cc @vanzin

@vanzin
Copy link
Contributor

vanzin commented Aug 30, 2016

LGTM.

@SparkQA
Copy link

SparkQA commented Aug 30, 2016

Test build #64663 has finished for PR 14879 at commit 47a84c3.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member Author

zsxwing commented Aug 30, 2016

Thanks! Merging to master

@asfgit asfgit closed this in 02ac379 Aug 30, 2016
@zsxwing zsxwing deleted the netty-thread branch August 30, 2016 20:27
zzcclp added a commit to zzcclp/spark that referenced this pull request Sep 5, 2016
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