SPIGOT-591: Optimize EntitySlice.iterator

Previously if the key 'this.c' was missing a new hashmap was created, this
caused thousands to be created each tick

By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
CraftBukkit/Spigot
2015-02-20 10:19:11 +00:00
parent f227bb34dc
commit fcb95ad15a
3 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
--- ../work/decompile-8eb82bde/net/minecraft/server/EntitySliceInnerClass1.java 2015-02-20 10:18:41.853023875 +0000
+++ src/main/java/net/minecraft/server/EntitySliceInnerClass1.java 2015-02-20 10:18:41.853023875 +0000
@@ -3,6 +3,7 @@
import com.google.common.collect.Iterators;
import java.util.Iterator;
+// PAIL: Access transform
class EntitySliceInnerClass1 implements Iterable {
final Class a;