I'm writing an app that communicates with a webserver. I send a POST and the response is a bunch of lines, delimited with CR. These can be 100 to 200 lines. This response has to be parsed and accordingly saved into a db on the device. The problem is that this parsing is so slow. Getting the data from the server takes only a second, parsing the response takes up to 10 seconds. Is this normal? Is there a way to speed things up?
You should send the data from the server as json-array. That can be really fast used in your app.
OR
Your code that you are using is to slow ;-)
Maybe show your code and we can have a look what need so much time....
In one of my apps there are 500 DB-Entries that came as json-array from the server... It needs a few seconds to build the complete scrollview with this data...
Well I put some logging in, and it's definitely the parsing that takes so long. Constructing the scrollview is fast enough.
I'll have a look into json. That's new to me. Thanks