|
|
|
|
|
by odipar
1910 days ago
|
|
Thanks for the reply! Unfortunately, persistent data structures tend to produce (short-lived) garbage which the JVM is very good at collecting! So yes, Clojure benefits immensely from the JVM. It is also an interesting research topic whether (optimised) reference counting would be a better approach. Regarding objects, there is also a "middle ground" to consider: Split big (immutable) arrays in smaller ones, connect them with some pointers in between, and you are still cache friendly. Also, you can do a lot on the application level to reduce garbage, and most Java programmers don't care for that exactly because of JVM. |
|