Reduce CPU cost of using java.util.Stream
s in Krystal code
#169
Labels
performance
Performance enhancement related
java.util.Stream
s in Krystal code
#169
Rough analysis of CPU flame charts show significant usage of CPU by Stream pipelines
For example, in one instance, filtering a list by applying a condition and finding the first match is taking 5x more CPU than the condition itself.
This means out of all the streams being used in Krystal, upto 4x CPU is being wasted by Streams.
If this can be reclaimed by replacing streams with for loops over iterators, we should do that.
The text was updated successfully, but these errors were encountered: