Currently, MachineBlockEntity#validConnections uses an ArrayList for storing connection directions, this is significantly slower than using EnumSet, for contains operations. this performance difference manifests when large networks transfer energy. No accesses of this value rely on order of elements, so changing the collection implementation used produces no differences in behavior.
Currently,
MachineBlockEntity#validConnections
uses anArrayList
for storing connection directions, this is significantly slower than usingEnumSet
, forcontains
operations. this performance difference manifests when large networks transfer energy. No accesses of this value rely on order of elements, so changing the collection implementation used produces no differences in behavior.