Is parsing JSON faster than parsing XML

前端 未结 11 739
盖世英雄少女心
盖世英雄少女心 2020-12-01 04:51

I\'m creating a sophisticated JavaScript library for working with my company\'s server side framework.

The server side framework encodes its data to a simple XML for

11条回答
  •  半阙折子戏
    2020-12-01 05:49

    the difference in performace will be so tiny, you wouldn't even notice it (and: you shouldn't think about performance problems until you have performance problems - there are a lot of more important points to care for - maintainable, readable and documented code...).

    but, to answer ayou question: JSON will be faster to parse (because it's simple javascript object notation).

提交回复
热议问题