Files
Sam Thursfield b7ccb6f516 export,info: Improve performance of --library mode
The library mode was slow due to use of item.formatted(), which
runs multiple database queries per item. The --include-keys option
didn't help because it filtered the after the queries had already
happened.

This commit reworks filtering so that we only query the fields
that the user requests. In many cases this can dramatically speed up
execution.

Before:

    > /usr/bin/time beet  export -l Bob Dylan > /dev/null
    13.42user 21.56system 0:35.71elapsed 97%CPU (0avgtext+0avgdata 52396maxresident)k

    > /usr/bin/time beet  export -l -i artist,title,path Bob Dylan > /dev/null
    13.25user 21.17system 0:35.14elapsed 97%CPU (0avgtext+0avgdata 52112maxresident)k

After:

    > /usr/bin/time beet  export -l Bob Dylan > /dev/null
    1.46user 0.09system 0:01.60elapsed 97%CPU (0avgtext+0avgdata 51188maxresident)k

    > /usr/bin/time beet  export -l -i artist,title,path Bob Dylan > /dev/null
    0.50user 0.07system 0:00.58elapsed 97%CPU (0avgtext+0avgdata 50632maxresident)k
2020-09-30 20:12:02 +02:00
..
2020-05-25 19:35:15 -04:00
2020-09-20 11:30:12 +10:00
2019-10-05 15:07:20 -07:00
2020-08-03 20:20:20 -05:00
2019-10-05 23:12:53 -07:00
2020-07-11 18:33:08 -07:00
2019-01-31 00:15:42 +00:00
2016-06-25 19:16:14 -07:00
2019-10-17 11:00:59 +01:00
2019-04-21 15:10:28 +01:00
2019-06-05 03:11:49 +02:00
2019-10-05 15:07:20 -07:00
2017-03-18 19:05:46 -04:00
2020-07-11 18:33:08 -07:00
2020-05-13 08:20:50 -04:00
2016-06-25 19:16:14 -07:00
2020-06-04 02:09:04 -04:00
2018-04-20 08:25:08 +02:00
2019-09-15 15:59:24 -07:00
2020-05-25 20:06:43 -04:00
2020-07-30 22:42:31 +02:00
2019-10-15 21:54:35 +02:00