Elektrine lite

← Feed

@harald@hub.volse.no

Post #1646905

2026-04-19 17:12 UTC

@Elias Mårtenson Which version of the JVM are you using? You could try to run the test with the JVM flight recorder enabled. That can give you an idea about what's happeing.

Replies (2)

  • @loke@functional.cafe 2026-04-20 00:55

    @harald I'm using Java 25. I did have the same issue with 21 before I upgraded.

    Open ##1646906

  • @loke@functional.cafe 2026-04-20 03:19

    @harald sadly, flight recorder isn't of much help. It can tell me what the code is doing when it's slow, but I already know exactly what functions are being called. That function is just slow. What I think happens is that a certain method gets inlined, and when another method gets called 1e9 times, it cannot get inlined because the first one already got inlined first, somehow? Is there a way to inspect the generated machine code? It's crazy it's come to this, but it's the life of a programming language implementation developer I suppose.

    Open ##1646907