by toldyouso2022 · 3y ago · 0 comments
Then the language itself will also know this and manage memory accordingly.
So if you have array with 1,2,3 and an array with 3,4,5 if you unite the arrays memory can just reference the two array as if they were one instead of creating a new one, because for sure they will never change. Imagine this on very big arrays
Someone was able speed up React's virtual DOM using Clojure data structures.