Performance problems in CMake support

Andreas Pakulat apaku at gmx.de
Wed Apr 2 07:45:26 UTC 2008


On 02.04.08 01:30:02, Aleix wrote:
> I've seen that using:
> QFile::exists(file.toLocalFile())
> instead of the
> !entryList("filename.*").isEmpty()

Did you try what happens if some of the additional Filter options are
given? Like QDir::Files, QDir::NoDotAndDotDot, QDir::Readable,
QDir::CaseSensitive.

> makes kdebase last 26s instead of 35s which is a very noticeable
> change. But, as you might imagine, it is not correct.

Huh? How did you get to that conclusion? Thats exactly how cmake works,
if libfoo.so is not existing, then the variable is set to -NOTFOUND. 

Try to execute this CMakeLists.txt (adjust the qt-copy path first) after
removing libQtCore.so from qt-copy:

,----
| Find_library(FOO_LIB QtCore
|         PATHS /home/andreas/qt-copy/lib
|         NO_DEFAULT_PATH
|         )
| 
| message("QTCORE: ${FOO_LIB}")
`----

Andreas

-- 
There is a fly on your nose.




More information about the KDevelop-devel mailing list