2017-06-19 01:36:55 +00:00
From 123d1f9c1b5da03f8d7675f061d98ec968bbb326 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-06-19 01:36:55 +00:00
index 9fc484ce..eb585818 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-05-14 18:05:01 +00:00
@@ -103,7 +103,7 @@ public abstract class MinecraftServer implements ICommandListener, Runnable, 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-06-19 01:36:55 +00:00
2.13.1.windows.2
2016-11-23 18:02:47 +00:00