davedelong/StackKit — Issue #34: JSON parser and memory footprint.
Author: piobyz
Created: 2012-01-17 15:55:45+00:00
State: open

SKJSONParser seems to be unable to parse whole ison string with 40 last questions from Stack Overflow, "month" category.

The URL is http://api.stackoverflow.com/1.1/questions?pagesize=40&page=1&order=desc&comments=true&sort=month&key=KEY&answers=true&fromdate=-2006227456&body=true

Content is about 1.5MB (I wonder if it's still small enough to parse on the iPad1 within reasonable ~10 seconds).

My app receives memory warning and crashes (tested on iPad 1).

In Instruments I can see that it takes about 100 MB of memory when it happens.

I'll be testing some external parsers with the same content, but if anyone has any thoughts or suggestions let me know.

Dave, do you see any flaws in SKJSONParser?