Request for comments, very slow compilation with super-overloaded methods

Vicente-Arturo Romero-Zaldivar vicente.romero at oracle.com
Wed Aug 7 07:34:09 PDT 2013


On 07/08/13 15:13, Adam Domurad wrote:
> On 08/02/2013 05:40 AM, Vicente-Arturo Romero-Zaldivar wrote:
>> Hi Adam,
>>
>> The bug has been solved and pushed into JDK 7 mainstream.
>>
>> bug id: JDK-8015668: overload resolution: performance regression in 
>> JDK 7
>>
>> the changeset is accessible here:
>>
>> http://hg.openjdk.java.net/jdk7u/jdk7u40-dev/langtools/rev/06285eb8d755
>>
>> Sorry for the late update.
>>
>> Vicente.
>>
>>
>
> TYVM. So I assume the regression fix comes from a faster 'contains' 
> method ?
>
> Happy hacking,
> -Adam

Exactly, the List.contains takes O(n) but the LinkedHashSet takes a 
constant time.

Vicente.


More information about the compiler-dev mailing list