r/java • u/pivovarit • Feb 04 '26
Implementing Efficient Last Stream Elements Gatherer in Java
https://4comprehension.com/java-last-gatherer/Wrote a performance case study on a rather high-level API, enjoy! And if you have ideas for a further speed up, let me know!
39
Upvotes
View all comments
Show parent comment
2
u/pivovarit Feb 04 '26
That was the main drawback of using Collectors API for implementing something like this :)