As I work my way through a rather extensive JSON data set with the help of DoT.js to generate a display template, I've noticed something intriguing. There are more than 3400 empty arrays present in a section of the JSON that is not being utilized for populating the template. Below is a snippet illustrating this unused JSON segment:
,"COMMENTS":[]
Although I'm ignoring this part in terms of template population, I do pass through it in an earlier stage of my code to ensure all keys throughout the entire JSON are converted to lowercase:
,"comments":[]
The question that arises is whether having an empty array like this has any negative impact on performance?