News for hackers. Stuff that matters.
Re:Java is very fast, if you don’t create many objects by thargor90 on Monday September 12, 2022 @10:02AM (#32810409)
Sometimes arrays are not an option, because objects may not be in memory at all times. A fun trick we use is to have the iterator be attached to the object lifecycle, so that repeated (parallel) iteration does not require multiple iterators. I can't remember the exact percentage, but this change alone increased our throughput by 20-25%.
Re:Java is very fast, if you don’t create many objects by ivan_gammel on Monday September 12, 2022 @11:11AM (#32811533)
That sounds both familiar and weird, like some strange lazy collection that performs an I/O operation to hydrate every time it creates iterator.

Whatever it is, it's certainly not something that would justify a modification of standard API to cover this use case.

Re:Java is very fast, if you don’t create many objects by seer-zig on Sunday September 18, 2022 @03:21PM (#32890590)
What was the use case for the app? Was it also HFT?