Closed acrisci closed 9 years ago
+1
That is a very interesting usecase indeed. Could you make a patch for this? Should be pretty straightforward…
Looking through the code, I found I could already do this with the yajl backend.
2018 calling.... @acrisci , do have an example of this?
I have an application that reads a continuous stream of json data from a process as an infinite array. I need to read an object out of this array about once per second. Each object is about 200 characters long.
The current buffer size is 16 * 1024. This means that I don't get events until the buffer is full, which takes a very long time. I need to make the buffer size very small for my application to work correctly.
I would like to add a kwarg to
ijson.parse()
to control the buffer size.