by doteka · 5y ago · 0 comments
(and in general java will trade off memory for speed: modern GCs can be very efficient in execution time but will use 2x-3x as much memory in return. If you want low memory usage your code is going to run slower).
Because if you require heap allocation for many short-lived objects, I expect this would be one of Java strengths unless you use an object pool.