JSON Parse very slow

About Monkey 2 Forums Monkey 2 Programming Help JSON Parse very slow

This topic contains 0 replies, has 1 voice, and was last updated by  therevills 1 week ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #16100


    therevills

    Participant

    I’ve created a little map via PyxelEdit, it is 640×400 in size using 8×8 tiles (so 80×50) and I’m using 3 layers, I’ve exported it into JSON format and when trying to parse it is taking over a second:

    [/crayon]

    Here is a subset of the JSON:

    [/crayon]

    If I export to XML and parse it via tinyxml it only takes around 300ms.

    The JSON is pretty big though over 2MB in size, but even compressed its slow.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.