Exponential compilation time for List.of(Map.entry) expressions

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Fri Jan 17 11:44:45 UTC 2025


Apologies, I should have been clearer - I meant if you have internal use 
cases (within Jetbrains code) where you observed this problem.

Maurizio

On 17/01/2025 11:39, Tagir Valeev wrote:
> Hello!
>
> On Fri, Jan 17, 2025 at 12:34 PM Maurizio Cimadamore 
> <maurizio.cimadamore at oracle.com> wrote:
>
>     Ah I see - so you do the full analysis, but when it gets "too
>     slow", you suggest to use explicit type parameters. Makes sense.
>
>     Now, if you have internal diagnostics on when this happens, and
>     see some what code triggered it, it might be useful to report bugs
>     -- so that we make sure that we avoid all the performance potholes
>     we can avoid.
>
>
> Unfortunately, asking users to submit snippets of their code in any 
> automated or semi-automated way is a very sensitive area. If a user 
> agrees to send anonymous statistics to us, we may see how often a 
> particular warning is triggered, and how often a quick-fix is applied, 
> but we don't see which code exactly triggered it.
> Probably more reasonable approach would be to crawl open code 
> repositories like GitHub and find the files where the problem appears.
>
> With best regards,
> Tagir Valeev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20250117/5dc3a0e6/attachment.htm>


More information about the compiler-dev mailing list