On Wednesday 08 July 2009, [email protected] wrote: > Hi, > > with a very long list, is there a performance difference between using > SET and LIST to just declare a variable ? > > SET (var > val1 > val2 > ... > val2000) > > or > > SET(var) > LIST(APPEND var > val1 > val2 > ... > val2000)
In this case there should be now performance difference. If you would instead 2000 times append only one item each time, LIST(APPEND) is much faster. Alex _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
