Closed freezy closed 12 years ago
Right now, importing 1200 artists and 500 albums takes about 10 seconds on a Nexus S. This seems pretty slow. The current algorithm is as follows:
JSONTokenizer
JSONObject
JSONArray
INSERT
ON CONFLICT REPLACE
DELETE
It's probably faster to just update current entries. Ideas in the comments.
Done by smee204, cheers!
Right now, importing 1200 artists and 500 albums takes about 10 seconds on a Nexus S. This seems pretty slow. The current algorithm is as follows:
JSONTokenizer
to serialize it into aJSONObject
JSONArray
of the responseINSERT
each item (ON CONFLICT REPLACE
constraint on the ID will remove duplicate entries)DELETE
items with timestamp < current timeIt's probably faster to just update current entries. Ideas in the comments.