javascript - Do empty arrays in JSON hurt performance when parsing the JSON dataset? -


i have rather large json data set parsing through using dot.js populate template display. see there on 3400 empty arrays portion of json not using populate template. here piece of unused json.

,"comments":[] 

i parsing through @ earlier point in code convert keys in entire json data set lowercase.

,"comments":[]

does having empty array impact performance negatively?

yes, has impact on performances. first, data transfer take little longer, json parsing slower.

http://jsperf.com/json-empty-arrays-perf


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -