JSON.decode(String) vs new XML(String)

43 views
Skip to first unread message

orda olmayan adam

unread,
Aug 14, 2009, 6:58:07 AM8/14/09
to ActionScript 3 Core Library
Hi,

I'm working on a project which uses Socket connection to receive data
as a String.
Now i have to choose the format of this String. In my tests i found
that
getting XML formatted String and build an XML object performs better
than
getting JSON formatted String (same data) and decode it with
as3corelib JSON.decode
Network latency or usability are not the main consideration.

I wanna ask if anybody experienced this type of performance
comparison. Is there a way
to perform JSON better?

Mike Chambers

unread,
Aug 24, 2009, 6:32:22 PM8/24/09
to as3co...@googlegroups.com
That makes sense since XML parsing is native to the player, and JSON
is implemented via ActionScript.

mike chambers

me...@adobe.com

Reply all
Reply to author
Forward
0 new messages