]> git.lyx.org Git - features.git/commit
Perf comments: getFormatFromFile slows LyX startup considerably
authorGuillaume Munch <gm@lyx.org>
Thu, 28 Jul 2016 15:52:14 +0000 (16:52 +0100)
committerGuillaume Munch <gm@lyx.org>
Sun, 31 Jul 2016 17:34:33 +0000 (18:34 +0100)
commit0a8b7f6a5740f4b4f976eb308841ad3b98166015
treeb935a507c28b9ef98d066c560f0fdf7d483c385f
parent22d7ba642415f576e9553b174166d8c17b945f39
Perf comments: getFormatFromFile slows LyX startup considerably

It is currently called on hundreds of files: settings, layouts, icons, cached
graphics files (incl. graphics from files that are not opened on startup).

According to callgrind, fixing the FIXME comments could speed up startup by more
than 30%.
src/ConverterCache.cpp
src/Format.cpp
src/Format.h