Rpc On Android Causes Gc_explicit
I need to synchronize my local sqlite database with a remote mysql database. I'm testing different XMLRPC and JSONRPC projects to do so. I send a packet containing all entries that
Solution 1:
I solved my problem a couple days ago.
I'm using the Android JSON RPC module made by Alex (project).
I removed the part where the module parses the JSON. And created my own parse routine using regex. The module also performs SQLite query's instead of creating JSON objects.
Another thing I changed is that the module will accept and receive multiple packets with a maximum of 1000 entries.
The code is extreemly fast, it took 30 minutes to synchronize 3000 entries, now it only takes 3 minutes. The reason why I'm posting this information instead of the code is because the code is very project specific.
Information about how to loop and why not to allocate over 1000 objects is described in the android performance document.
Post a Comment for "Rpc On Android Causes Gc_explicit"