Fork me on GitHub
#clojure-gamedev
<
2023-01-20
>
emil0r13:01:05

@ertucetin How much of a performance difference does it make between using Clojurescript’s immutable data structures vs using the interop library you mentioned on /r/clojure?

Ertugrul Cetin13:01:22

At the beginning, there is no difference, but memory increases over time, it is better to have mutable JavaScript objects. They are also very fast compared to ClojureScript ones. For performance-sensitive apps, it is crucial not to trigger garbage collection very often. Here is a nice video where the author of Lightable talks about making ClojureScript games: https://youtu.be/V1Eu9vZaDYw?t=268

emil0r15:01:14

Ah, sweet 😊