Exponential compilation time for List.of(Map.entry) expressions
Tagir Valeev
amaembo at gmail.com
Fri Jan 17 11:39:42 UTC 2025
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/60e5cf09/attachment-0001.htm>
More information about the compiler-dev
mailing list