X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FConverterCache.cpp;h=7590336411548428ea2f8020ecd85026a49af5bb;hb=2de30c62f8d671a8c8d4d52a6a7310e2c5ca84de;hp=29d07e4a04a5b7ce05aca502cc1c4d17b712d7f9;hpb=0fbc402141f5bf58a7e8696bfa11f3c67b80e637;p=lyx.git diff --git a/src/ConverterCache.cpp b/src/ConverterCache.cpp index 29d07e4a04..7590336411 100644 --- a/src/ConverterCache.cpp +++ b/src/ConverterCache.cpp @@ -159,6 +159,10 @@ void ConverterCache::Impl::readIndex() FormatCache & format_cache = cache[orig_from_name]; if (format_cache.from_format.empty()) format_cache.from_format = + // FIXME perf: This very expensive function is called on all + // cached files on opening. This slows LyX startup a lot. It + // would be better if this information was retrieved in a + // delayed fashion. formats.getFormatFromFile(orig_from_name); format_cache.cache[to_format] = item; } @@ -223,7 +227,6 @@ ConverterCache::~ConverterCache() } -// FIXME THREAD ConverterCache & ConverterCache::get() { // Now return the cache