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:
@@ -13,7 +13,7 @@ public class CompassManager
|
||||
|
||||
public static final CompassManager instance = new CompassManager();
|
||||
|
||||
class CompassRequest
|
||||
static class CompassRequest
|
||||
{
|
||||
|
||||
final int hash;
|
||||
|
||||
@@ -19,7 +19,7 @@ import cpw.mods.fml.common.IWorldGenerator;
|
||||
final public class MeteoriteWorldGen implements IWorldGenerator
|
||||
{
|
||||
|
||||
class myGen implements ICompassCallback
|
||||
static class MyGen implements ICompassCallback
|
||||
{
|
||||
|
||||
double distance = 0;
|
||||
|
||||
@@ -40,7 +40,7 @@ import cpw.mods.fml.common.gameevent.TickEvent.WorldTickEvent;
|
||||
public class TickHandler
|
||||
{
|
||||
|
||||
class HandlerRep
|
||||
static class HandlerRep
|
||||
{
|
||||
|
||||
public Queue<AEBaseTile> tiles = new LinkedList<AEBaseTile>();
|
||||
|
||||
Reference in New Issue
Block a user