Use as many threads as the system can handle.

This commit is contained in:
md_5 2013-03-19 16:07:39 +11:00
parent 3fed94fbf2
commit 5a15d5387c

View File

@ -69,7 +69,9 @@ public class BungeeCord extends ProxyServer
/** /**
* Thread pool. * Thread pool.
*/ */
public final MultithreadEventLoopGroup eventLoops = new NioEventLoopGroup( 8, new ThreadFactoryBuilder().setNameFormat( "Netty IO Thread - %1$d" ).build() ); public final MultithreadEventLoopGroup eventLoops = new NioEventLoopGroup(
Runtime.getRuntime().availableProcessors() * 2,
new ThreadFactoryBuilder().setNameFormat( "Netty IO Thread - %1$d" ).build() );
/** /**
* locations.yml save thread. * locations.yml save thread.
*/ */