Depsgraph: Fully switch from string to const char*

This brings up to 10-20% depsgraph build time improvement in the layout
files from the studio repository.
This commit is contained in:
2016-11-03 14:45:47 +01:00
parent c9eca0c6c9
commit 287197c4e3
13 changed files with 85 additions and 79 deletions

View File

@@ -66,10 +66,10 @@ struct DepsgraphDebug {
static DepsgraphStatsID *get_id_stats(ID *id, bool create);
static DepsgraphStatsComponent *get_component_stats(DepsgraphStatsID *id_stats,
const string &name,
const char *name,
bool create);
static DepsgraphStatsComponent *get_component_stats(ID *id,
const string &name,
const char *name,
bool create)
{
return get_component_stats(get_id_stats(id, create), name, create);