Some performance or memory optimizations
Replaced String concat in loops with StringBuilder (performance) Replaced for with keySet + Map.get() through for with entrySet (perf) Changed inner classes to static classes, mostly struct like (memory)
This commit is contained in:
@@ -42,7 +42,7 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
|
||||
|
||||
static private long autoBase = Long.MIN_VALUE;
|
||||
|
||||
class InvTracker
|
||||
static class InvTracker
|
||||
{
|
||||
|
||||
final long which = autoBase++;
|
||||
@@ -76,7 +76,7 @@ public class ContainerInterfaceTerminal extends AEBaseContainer
|
||||
|
||||
NBTTagCompound data = new NBTTagCompound();
|
||||
|
||||
class PatternInvSlot extends WrapperInvSlot
|
||||
static class PatternInvSlot extends WrapperInvSlot
|
||||
{
|
||||
|
||||
public PatternInvSlot(IInventory inv) {
|
||||
|
||||
Reference in New Issue
Block a user