From 20867c1687a43f67a2b9f6c5d02cf716fa300495 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 8 Feb 2018 19:44:53 +0530 Subject: [PATCH] Micro-optimization --- src/calibre/db/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/cache.py b/src/calibre/db/cache.py index 5c6bd598b2..5f83b640c4 100644 --- a/src/calibre/db/cache.py +++ b/src/calibre/db/cache.py @@ -547,7 +547,7 @@ class Cache(object): ''' af = self.fields['authors'] if author_ids is None: - author_ids = tuple(af.table.id_map) + return {aid:af.author_data(aid) for aid in af.table.id_map} return {aid:af.author_data(aid) for aid in author_ids if aid in af.table.id_map} @read_api