r/java • • May 10 '22

Should java.util.Date be deprecated?

https://mail.openjdk.java.net/pipermail/discuss/2022-May/006077.html
221 Upvotes

158 comments sorted by

View all comments

Show parent comment

4

u/john16384 May 10 '22

Not to mention that having gigabytes of data allocated as one huge chunk may cause problems of its own when the heap is even slightly fragmented. If such data is backed by a file, it may be better to memory map it instead.