Lazy initialize library paths
authorHarald Fernengel <harald.fernengel@nokia.com>
Fri, 27 Jul 2012 09:53:46 +0000 (11:53 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 31 Jul 2012 22:14:41 +0000 (00:14 +0200)
commit8fb040b6c03ef2725419bfa7c9d58d21f2270b85
treeafc7dc68d12072200a5d3a1fb8ae3d2bbc8e28b8
parent39df773eb5926621d1a742ed5af574933028b2a8
Lazy initialize library paths

For a lot of command line tools, library loading is not required, so
don't waste a lot of time computing them. According to callgrind, this
makes the QCoreApplication constructor factor 6 faster, and also removes
a lot of stat() calls and other file system access.

Change-Id: I0211f5303712fa0dcfc4168cce7025283c63c9d1
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/kernel/qcoreapplication.cpp