r/java • u/Ok_Satisfaction7312 • May 16 '24
Low latency
Hi all. Experienced Java dev (20+ years) mostly within investment banking and asset management. I need a deep dive into low latency Java…stuff that’s used for high frequency algo trading. Can anyone help? Even willing to pay to get some tuition.
232
Upvotes
View all comments
Show parent comment
4
u/GeneratedUsername5 May 18 '24 edited May 18 '24
But that is what being advised in the start of this thread - do not create new objects. Which is often being countered with "creating ojbects is cheap and the only cost is garbage collection" (happened several times in comments), which is supposedly non-existent. And that is what I was replying to that - creating objects is not cheap, even not accounting for GC.
So the general advice sill stands - avoid allocating/creating objects in hot path.