mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-28 05:05:21 +01:00
Use as many threads as the system can handle.
This commit is contained in:
parent
3fed94fbf2
commit
5a15d5387c
@ -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.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user