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

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

php - HTTP_REFERER woes: How can I allow access to a specific page, only when a visitor has visited another specific page beforehand? -