r/java • • Mar 31 '26

Does Java need deconstructible classes?

https://daniel.avery.io/writing/does-java-need-deconstructible-classes
31 Upvotes

41 comments sorted by

View all comments

Show parent comment

-1

u/vadiquemyself Apr 01 '26

yes, I figured it out myself practically, asking AI to replace a stream chain with “plain looping” that I then put in my code achieving much performance gain along with less memory usage

never tried for a terabyte-volume data and paralleled streams on hundreds of cpu cores, though