On 01/12/14 13:44, Andy Seaborne wrote:
> 
> I see ava.time.chrono.LocalDateTime:

java.time.LocalDateTime, right?

> @Override  // override for Javadoc and performance
>     public String format(DateTimeFormatter formatter) {
>         Objects.requireNonNull(formatter, "formatter");
>         return formatter.format(this);
>     }
> 
> which is overriding the interface ChronoLocalDate which has a default
> method
> 
>     default String format(DateTimeFormatter formatter) {
>         Objects.requireNonNull(formatter, "formatter");
>         return formatter.format(this);
>     }
> 
> 
> How much performance difference does this make?

LocalDateTime is final, so I wonder whether this ensures a less
convoluted lookup somewhere? Default methods in a very late linked
runtime like java's must be fun.

The correct answer is
<http://openjdk.java.net/projects/code-tools/jmh/>, of course.

Damian

-- 
Damian Steer
Senior Technical Researcher
Research IT
+44 (0) 117 928 7057

Reply via email to