Use list in media library when listallinfo is overkill
commit49f53c07bbc3148543e3141c54ca788d7a981df1
authorTrygve Aaberge <trygveaa@gmail.com>
Sun, 22 Jun 2014 11:48:35 +0000 (22 13:48 +0200)
committerAndrzej Rybczak <electricityispower@gmail.com>
Fri, 29 Aug 2014 14:39:37 +0000 (29 16:39 +0200)
tree95363bbee8ec9ec0ae5d8a658e39825d42a0b57e
parent749821ecc555c620e2ec8ba1d12b6066977d00e0
Use list in media library when listallinfo is overkill

When the media library is not sorted by mtime and not in two column
mode, there is no reason to use listallinfo/GetDirectoryRecursive,
instead of list/GetList.

Using list instead of listallinfo is desired because listallinfo may be
slow, fetches a lot more data than necessary in this case and because
the MPD reference says this about listallinfo:
    Do not use this command. Do not manage a client-side copy of MPD's
    database. That is fragile and adds huge overhead. It will break with
    large databases. Instead, query MPD whenever you need something.
src/media_library.cpp