Use release Netty to avoid performance regressions.

This commit is contained in:
md_5 2013-02-17 20:06:57 +11:00
parent 4f6246addd
commit 7ae39f39cb
1 changed files with 6 additions and 18 deletions

View File

@ -1,4 +1,4 @@
From bc0a1d00c692dcef71565d3288b5c52ceb0e699b Mon Sep 17 00:00:00 2001 From 068d76f55fb9f85fbcc504d8627aa1ee64e5a07f Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au> From: md_5 <md_5@live.com.au>
Date: Thu, 14 Feb 2013 17:32:20 +1100 Date: Thu, 14 Feb 2013 17:32:20 +1100
Subject: [PATCH] Netty Subject: [PATCH] Netty
@ -12,7 +12,7 @@ The code within this commit has been very lightly tested in production (300 play
This commit provides a reduction in threads, which gives the CPU / operating system more time to allocate to the main server threads, as well as various other side benefits such as chat thread pooling and a slight reduction in latency. This commit provides a reduction in threads, which gives the CPU / operating system more time to allocate to the main server threads, as well as various other side benefits such as chat thread pooling and a slight reduction in latency.
This commit is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported license. This commit is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported license.
--- ---
pom.xml | 10 + pom.xml | 5 +
.../java/net/minecraft/server/DedicatedServer.java | 2 +- .../java/net/minecraft/server/DedicatedServer.java | 2 +-
.../net/minecraft/server/Packet51MapChunk.java | 2 +- .../net/minecraft/server/Packet51MapChunk.java | 2 +-
.../net/minecraft/server/Packet56MapChunkBulk.java | 2 +- .../net/minecraft/server/Packet56MapChunkBulk.java | 2 +-
@ -25,7 +25,7 @@ This commit is licensed under the Creative Commons Attribution-ShareAlike 3.0 Un
.../java/org/spigotmc/netty/PacketEncoder.java | 43 ++++ .../java/org/spigotmc/netty/PacketEncoder.java | 43 ++++
.../java/org/spigotmc/netty/PacketListener.java | 100 +++++++++ .../java/org/spigotmc/netty/PacketListener.java | 100 +++++++++
src/main/java/org/spigotmc/netty/ReadState.java | 16 ++ src/main/java/org/spigotmc/netty/ReadState.java | 16 ++
13 files changed, 868 insertions(+), 7 deletions(-) 13 files changed, 863 insertions(+), 7 deletions(-)
create mode 100644 src/main/java/org/spigotmc/netty/CipherCodec.java create mode 100644 src/main/java/org/spigotmc/netty/CipherCodec.java
create mode 100644 src/main/java/org/spigotmc/netty/NettyNetworkManager.java create mode 100644 src/main/java/org/spigotmc/netty/NettyNetworkManager.java
create mode 100644 src/main/java/org/spigotmc/netty/NettyServerConnection.java create mode 100644 src/main/java/org/spigotmc/netty/NettyServerConnection.java
@ -36,29 +36,17 @@ This commit is licensed under the Creative Commons Attribution-ShareAlike 3.0 Un
create mode 100644 src/main/java/org/spigotmc/netty/ReadState.java create mode 100644 src/main/java/org/spigotmc/netty/ReadState.java
diff --git a/pom.xml b/pom.xml diff --git a/pom.xml b/pom.xml
index f17bd19..fc7bfa0 100644 index f17bd19..d84ac12 100644
--- a/pom.xml --- a/pom.xml
+++ b/pom.xml +++ b/pom.xml
@@ -29,6 +29,11 @@ @@ -132,6 +132,11 @@
<id>repobo-snap</id>
<url>http://repo.bukkit.org/content/groups/public</url>
</repository>
+ <repository>
+ <id>sonatype-nexus-snapshots</id>
+ <name>Sonatype Nexus Snapshots</name>
+ <url>https://oss.sonatype.org/content/repositories/snapshots</url>
+ </repository>
</repositories>
<dependencies>
@@ -132,6 +137,11 @@
<artifactId>trove4j</artifactId> <artifactId>trove4j</artifactId>
<version>3.0.2</version> <version>3.0.2</version>
</dependency> </dependency>
+ <dependency> + <dependency>
+ <groupId>io.netty</groupId> + <groupId>io.netty</groupId>
+ <artifactId>netty</artifactId> + <artifactId>netty</artifactId>
+ <version>4.0.0.Beta1-SNAPSHOT</version> + <version>4.0.0.Beta1</version>
+ </dependency> + </dependency>
</dependencies> </dependencies>