summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/BackupManagerService.java
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2012-03-23 16:04:58 -0700
committerMarco Nelissen <marcone@google.com>2012-03-23 16:37:50 -0700
commitc164faa8314c110d417b653b9926de4803bb2dda (patch)
tree35cb3ae226e1b663d07e710fa2205339268432e5 /services/java/com/android/server/BackupManagerService.java
parentda9deca7bab75f39a236d04b9e43d9da833ce4a0 (diff)
Speed up playlist processing
The recent removal of the cache from MediaScanner (commit 58ef68905d67e356eb) slowed down processing of playlists, in some cases significantly, due to every line in a playlist prompting a query that looped over the entire audio table. With this change, the query is only done once instead of for every line, and the code starts iterating over the Cursor starting near the point of the last match, instead of from the start. The latter is especially helpful when the entire query result is too large to fit in a CursorWindow, since it reduces the number of times that sqlite has to perform an offset query under the hood to refil the window. Change-Id: I9fea990b3b8c86571384de2122708fb7e809c355
Diffstat (limited to 'services/java/com/android/server/BackupManagerService.java')
0 files changed, 0 insertions, 0 deletions