Skip to content

Commit

Permalink
Traktor: Minor optimization; less potential allocs in mergeBranches.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Mar 20, 2024
1 parent a39d5be commit f9788ad
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ Ref< ShaderGraph > ShaderGraphOptimizer::mergeBranches() const

// Calculate node hashes.
SmallMap< const Node*, uint32_t > hash;
hash.reserve(nodes.size());
for (auto node : nodes)
hash[node] = ShaderGraphHash(true, true).calculate(node);

Expand Down

0 comments on commit f9788ad

Please sign in to comment.