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.
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
andEnergy.of
can be seen consuming an unwanted amount of the tick time which is not ideal. Hopefully this change will help performance.