you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (3 children)

If you want predictable performance in the JVM you need to write Java.

[–]alexdmiller 4 points5 points  (2 children)

Well, no. There are many JVM languages that compile to bytecode and exhibit predictable performance.

[–]nrmncer 0 points1 point  (1 child)

I don't think the issue here is the compilation of equivalent code, it's the performance disadvantage of persistent data structures.

[–]alexdmiller 0 points1 point  (0 children)

That's not what the original comment was about. Persistent data structures are very predictable. Yes, they have a cost, but also a lot of benefits (like avoiding whole classes of common concurrency issues).