TechReborn / Energy

An Energy API
MIT License
78 stars 13 forks source link

Replace streams #4

Closed GabrielOlvH closed 3 years ago

GabrielOlvH commented 3 years ago

The reason for this change is because these methods are called very often and streams create overhead, although not very big, it can escalate when lots of them are created which can be seen in spark results like this from the All Of Fabric NA server. Calls for Energy.valid and Energy.of can be seen consuming an unwanted amount of the tick time which is not ideal. Hopefully this change will help performance.