I am creating a node application that generates scripts for test cases. I am getting the feel that in case of large codes the scripts or javascritp files generated are taking up high memory.
I would like to know how much memory is allocated to javascript variables. The reason I want to know the same is that I would like to free memory to make my application faster in case it is taking in more memory.
The duplicate or so called duplicate question was actually concerned about the memory allocation/de-allocation in Javascript which I am aware of. The intent of the question is that
a) Do we need to think about memory issues making our app slower in javascript node.js based applications?
b) If the reply to the above question is yes, how do we know which Javascript objects are not in use anymore and hence deallocate any memory assigned to it forcefully(if Javascript provides any such option which I am not aware of)?