Cache directory entries when collecting item prototypes.
authorChristian Kandeler <christian.kandeler@digia.com>
Wed, 23 Oct 2013 09:23:49 +0000 (11:23 +0200)
committerChristian Kandeler <christian.kandeler@digia.com>
Mon, 28 Oct 2013 11:41:48 +0000 (12:41 +0100)
commit68514e8cb29bd805b30d393457ef282611364d37
tree20d00f367906d57b3dad7ac2278792d8ba3ca696
parentfa69cddcdfbdda334ebde569b8cd9a1f0390fec1
Cache directory entries when collecting item prototypes.

The file system access is expensive. As a result, the "UiImport" visitor
function showed up prominently on callgrind's heat map. Now it doesn't.

Change-Id: I3a37fa2b6d4abc29bb9c25776b86a485f647afce
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
src/lib/language/itemreader.cpp
src/lib/language/itemreader.h
src/lib/language/itemreaderastvisitor.cpp
src/lib/language/itemreaderastvisitor.h