Depsgraph: Switch away form string to const char* for node names
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 3 Nov 2016 10:50:18 +0000 (11:50 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 7 Nov 2016 10:04:49 +0000 (11:04 +0100)
commita7f53bc5123fcc2fef8f31424aeb7fdd9aaccaa9
treed7224dc89b1058cbe8001f299dc765a7ff78efe5
parentf64548daa6d6d863356367bb72017c511bf04953
Depsgraph: Switch away form string to const char* for node names

There is no real reason to have nodes storing heap-allocated name
and description. Doing this increases amount of allocations during
dependency graph building, which usually means somewhat slowness.

We're temporarily loosing some eyecandy in the graphviz visualizer,
but those we can bring back as a part of graphiz dump (which happens
much less often than depsgraph build).

This will happen in multiple commits for the ease of bisect in the
future just in case this causes any regression. This commit contains
ID creation API changes.
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
source/blender/depsgraph/intern/depsgraph.cc
source/blender/depsgraph/intern/depsgraph.h