From 332033bb02842dafd5523ba4c72052201851f94f Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 9 Aug 2013 16:58:14 +1000 Subject: [PATCH] Disable resource leak detector for ~15% cpu reduction --- proxy/src/main/java/net/md_5/bungee/BungeeCord.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java index 895c326e..b78322ad 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java @@ -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();