2017-01-31 04:33:54 +00:00
From be295f0f521ab777676a30a6873b199bd8fdba99 Mon Sep 17 00:00:00 2001
2016-11-23 18:02:47 +00:00
From: vemacs <d@nkmem.es>
Date: Wed, 23 Nov 2016 12:54:56 -0500
Subject: [PATCH] Optimize Network Queue
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
2017-01-31 04:33:54 +00:00
index e04bade5b..fc5be09ad 100644
2016-11-23 18:02:47 +00:00
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
2017-01-31 04:33:54 +00:00
@@ -103,7 +103,7 @@ public abstract class MinecraftServer implements Runnable, ICommandListener, IAs
2016-11-23 18:02:47 +00:00
private final GameProfileRepository X;
private final UserCache Y;
private long Z;
- protected final Queue<FutureTask<?>> j = new java.util.concurrent.ConcurrentLinkedQueue<FutureTask<?>>(); // Spigot, PAIL: Rename
+ protected final Queue<FutureTask<?>> j = new com.destroystokyo.paper.utils.CachedSizeConcurrentLinkedQueue<>(); // Spigot, PAIL: Rename // Paper - Make size() constant-time
private Thread serverThread;
private long ab = aw();
--
2017-01-31 04:33:54 +00:00
2.11.0.windows.3
2016-11-23 18:02:47 +00:00