Oracle Tutorials
I want to get some official documentation from Oracle
The official Oracle Tutorials has replaced the tutorial on date-and-time with new material covering only the java.time classes.
Now ‘legacy’
The troublesome old date-time classes have been dropped from the tutorial, except for a page on migrating from the old classes to the modern classes. Note that the page is explicitly labeled as ‘legacy’.
Performance
As for performance, I am not aware of any significant difference between the legacy and modern classes.
Internally, the classes work with similar data, integer count-from-epoch and similar time zone info. So I can't imagine any great difference in performance between, say, java.util.Date
and java.time.Instant
. If anything, in practice java.time may be faster as it is entirely thread-safe, so you can cache and reuse values rather than regenerate them.
Even if the java.time classes proved slower, their modern design and clarity of usage and correctness of results are far more important than some minor speed difference.
Anyone alleging performance issues should demonstrate with example code. As the old saying goes, “Put up, or shut up”.