Disable resource leak detector for ~15% cpu reduction

This commit is contained in:
md_5 2013-08-09 16:58:14 +10:00
parent 172b8bc75b
commit 332033bb02

View File

@ -14,6 +14,7 @@ import io.netty.channel.ChannelFutureListener;
import io.netty.channel.MultithreadEventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.util.ResourceLeakDetector;
import net.md_5.bungee.config.Configuration;
import java.io.File;
import java.io.IOException;
@ -234,6 +235,8 @@ public class BungeeCord extends ProxyServer
@Override
public void start() throws Exception
{
ResourceLeakDetector.setEnabled( false ); // Eats performance
pluginsFolder.mkdir();
pluginManager.detectPlugins( pluginsFolder );
config.load();