cdock1029 / ceres

Cloud data collector
3 stars 0 forks source link

yajl #5

Closed xingzhong closed 11 years ago

xingzhong commented 11 years ago

yajl seems a fast json library. But we need install a non nodejs requirement.

Do we really heavily using that now? Can we use build-in implementation or alternative method?

cdock1029 commented 11 years ago

The issue is that the built in JSON parsing functionality of javascript is synchronous. Therefore yajil is a necessary component for asynchronous performance for parsing the JSON... if there is malformed JSON submitted to the application that is parsed by JSON.parse, the whole application would crash.. as well as for larger JSON objects performance would suffer vs asynchronous parsing.