[cmake-developers] profiling cmake

Alexander Neundorf neundorf at kde.org
Tue Oct 24 18:18:31 EDT 2006


On Monday 23 October 2006 19:18, you wrote:
...
> We could take the Tcl approach and convert the internal representation
> of variable values to an object instead of a string.  The object would
> have a dual representation: string and vector.  There would be lazy
> conversion between the two representations as needed.  Currently there
> are many places with code like this:
>
> std::vector<std::string> defList;
> if(const char* def = this->Makefile->GetDefinition("BLAH"))
>   {
>   cmSystemTools::ExpandListArguments(def, defList).
>   }
>
> If this were converted to some kind of direct call to get a list value
> for the variable we could then do something like the above.

Yes, I already thought about something similar.
Or maybe it would also be an idea to store the vector instead of the string ?
Creating the string from the vector should be faster than the other way round 
I think (didn't measure).

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net



More information about the cmake-developers mailing list