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
This commit is contained in:
Thinkofdeath
2015-02-20 10:19:11 +00:00
parent 1d63ff0d9b
commit ee6d0fa938
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;