JavaScript has Heap (garbage collected) memory, and Native (Typed Arrays, DOM elements) memory.
Question: is there a balance between the two so that if I want to have a LOT of typed arrays, it works, but simply reduces the heap?
The usual model is that there is memory allocated such that native starts at the top, and heap at the bottom, so to speak. And when more memory is needed, the memory is increased and the native and heap moved to the top/bottom again, with additional memory between. Or some similar approach that trades off between the two.
Odd question, I realize, but I'm writing large programs that are trying to minimize memory usage via Typed Arrays.
Thanks!